/* site.css — the shared chrome of the public site.
 *
 * The tokens, the top menu, the buttons and the plan cards. Every page of
 * the site links this file, so the menu on the pricing page cannot drift
 * from the menu on the marketing page — which is exactly what happened when
 * each page carried its own copy of the header.
 *
 * The pages keep their own CSS for their own layouts; only the parts that
 * are shared live here.
 */

:root {
  --ink: #0d1220;
  --ink-2: #1b2136;
  --muted: #5c6579;
  --muted-2: #8b93a5;
  --line: #e6e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --brand: #5b5bd6;
  --brand-2: #8b5cf6;
  --brand-ink: #3f3fb0;
  --gold: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(13,18,32,.06), 0 4px 14px rgba(13,18,32,.05);
  --shadow-lg: 0 18px 50px rgba(13,18,32,.12);
  --max: 1140px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- the menu */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,32,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
/* THE GAPS ARE TIGHT.
 *
 * The menu has eight links, and "Privacy" became "Privacy Policy" and
 * "Terms of use" was added to it. The bar gives 1140px and the menu
 * wanted 1249px — so it did not fit, the links were squeezed, and
 * "How it works" and "Privacy Policy" broke onto two lines inside a
 * 66px bar. A link that breaks in two looks like a mistake, and it
 * pushes the bar out of its height.
 *
 * So the gaps are tighter, and below 1080px the menu is the button. */
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; letter-spacing: -.02em; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
}
.nav nav { display: flex; gap: 14px; margin-left: auto; }
.nav nav a {
  color: #b9c0d4; font-size: 14.5px; font-weight: 500;
  /* A link never breaks into two lines: "How it works" that breaks in
   * two is not a link, it is a mistake. */
  white-space: nowrap;
}
.nav nav a:hover { color: #fff; text-decoration: none; }
.nav .cta {
  background: #fff; color: var(--ink); border-radius: 10px;
  padding: 9px 16px; font-size: 14.5px; font-weight: 600;
}
.nav .cta:hover { text-decoration: none; opacity: .92; }
/* The sign-in, next to the call to action. */
.nav .signin { color: #b9c0d4; font-size: 14.5px; font-weight: 500; margin-left: 14px; }
.nav .signin:hover { color: #fff; text-decoration: none; }
/* The sign-out: a form in the menu, so that it works without a script.
   The button is the link, in every way that matters to the eye. */
.nav .signout { display: inline; margin: 0 0 0 12px; }
.nav .signout button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: #b9c0d4; font-size: 14.5px; font-weight: 500; font-family: inherit;
}
.nav .signout button:hover { color: #fff; }

/* The mobile menu.
   The links used to be hidden below 820px with nothing to replace them, so
   on a phone the menu simply was not there. Now a button opens it. */
.nav .menu-toggle {
  display: none; margin-left: auto;
  width: 40px; height: 36px; border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  color: #fff; align-items: center; justify-content: center; padding: 0;
}
.nav .menu-toggle:hover { background: rgba(255,255,255,.12); }
.nav .menu-toggle i {
  display: block; width: 16px; height: 1.5px; background: #fff; position: relative;
  border-radius: 2px;
}
.nav .menu-toggle i::before, .nav .menu-toggle i::after {
  content: ''; position: absolute; left: 0; width: 16px; height: 1.5px;
  background: #fff; border-radius: 2px;
}
.nav .menu-toggle i::before { top: -5px; }
.nav .menu-toggle i::after { top: 5px; }
/* THE MENU BECOMES THE BUTTON.
 *
 * The bar has 1140px and the eight links need all of it. So below
 * 1080px the links go behind the button — which is the pattern the
 * site already used for the phone, and the only one that works when
 * there is not enough room. The links are all there, and one press
 * opens them. */
@media (max-width: 1080px) {
  .nav .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .nav .brand { order: 1; }
  .nav .cta { order: 2; margin-left: 12px; }
  .nav .signin { order: 3; margin-left: 12px; }
  .nav .signout { order: 4; margin-left: 12px; }
  .nav .menu-toggle { order: 5; display: inline-flex; }
  .nav nav { display: none; }
  /* The menu drops below the bar, full width, as its own row. */
  .nav.open nav {
    display: flex; order: 6; flex-basis: 100%; flex-direction: column;
    align-items: flex-start; gap: 2px; padding: 10px 0 4px;
    border-top: 1px solid rgba(255,255,255,.1); margin-top: 12px;
  }
  .nav.open nav a { width: 100%; padding: 9px 0; font-size: 16px; }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-size: 15.5px; font-weight: 650;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s, background .15s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 24px rgba(91,91,214,.35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(91,91,214,.45); }
/* For a dark background: the hero and the call-to-action band. */
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
/* For a light background. */
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-outline { background: #fff; color: var(--brand-ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--brand); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------ plan cards */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px 30px;
  position: relative; box-shadow: var(--shadow-sm);
}
.plan.featured { border-color: var(--brand); box-shadow: 0 18px 44px rgba(91,91,214,.16); }
.plan.lifetime { border-color: #f4d9a4; background: linear-gradient(180deg, #fffdf7, #fff); }
.plan .tag {
  position: absolute; top: -11px; left: 26px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 999px; color: #fff; background: var(--brand);
}
.plan.lifetime .tag { background: var(--gold); color: #4a2c00; }
.plan.build { border-color: #c7d2fe; background: linear-gradient(180deg, #f7f8ff, #fff); }
.plan.build .tag { background: var(--brand-2); }
.plan h3 { font-size: 19px; letter-spacing: -.02em; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 22px; display: grid; gap: 9px; }
.plan li { font-size: 14.5px; color: var(--ink-2); display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: '✓'; color: var(--green); font-weight: 800; flex: 0 0 auto; }
.plan li.no { color: var(--muted-2); }
.plan li.no::before { content: '–'; color: #c9cedb; }
.plan .btn { width: 100%; }

/* The banner of the consent.
 *
 * It sits at the bottom of the page, so it never covers the thing the
 * visitor came to do. The two buttons are side by side and the same
 * size: the refusal is not made harder than the acceptance.
 */
.ntpl-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(13,18,32,.97); color: #e6e8f0;
  border-top: 1px solid rgba(255,255,255,.12);
  backdrop-filter: saturate(160%) blur(12px);
}
.ntpl-consent .c-box {
  max-width: var(--max); margin: 0 auto;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.ntpl-consent .c-text { flex: 1 1 420px; min-width: 0; }
.ntpl-consent .c-text strong { display: block; font-size: 15px; margin-bottom: 3px; }
.ntpl-consent .c-text p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.55; color: #c3c9d6; }
.ntpl-consent .c-text ul { margin: 6px 0; padding-left: 18px; }
.ntpl-consent .c-text li { font-size: 13px; line-height: 1.5; color: #c3c9d6; margin-bottom: 3px; }
.ntpl-consent .c-why { color: #9aa3b5; }
.ntpl-consent .c-where { color: #8b93a5; font-size: 12px; }
/* THE NOTICE OF THE COOKIES.
 *
 * It comes first, and it is set apart from the rest of the text: it is
 * the notice, and the question about the third-party script is a
 * different thing with a different answer. The two documents it names
 * are links, so the visitor can read them before deciding. */
.ntpl-consent .c-notice {
  margin: 0 0 12px !important;
  padding: 10px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  font-size: 13.5px !important;
  color: #dfe3ec !important;
}
.ntpl-consent .c-notice a { color: #b9bdf7; font-weight: 600; text-decoration: underline; }
.ntpl-consent .c-notice a:hover { color: #d5d8ff; }
.ntpl-consent .c-more { margin: 4px 0 0 !important; font-size: 12.5px !important; }
.ntpl-consent .c-more a { color: #b9bdf7; }
.ntpl-consent .c-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.ntpl-consent .c-actions button {
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  /* THE TWO ARE THE SAME SIZE.
   *
   * "No, thanks" is a longer word than "Allow", so without this the
   * refusal is the SMALLER button — and a refusal that is smaller is a
   * refusal that is made harder. The ePrivacy rule asks for the refusal
   * to be as easy as the acceptance, so they are the same size whatever
   * the words are. */
  flex: 1 1 0; min-width: 140px; text-align: center;
}
/* THE COLOUR OF THE TWO BUTTONS.
 *
 * ⚠️ THE SELECTOR IS DEEPER THAN THE RULE ABOVE ON PURPOSE. The base
 * rule is `.ntpl-consent .c-actions button` — two classes and an
 * element — and it sets `border: 1px solid transparent`. A rule with
 * two classes only (`.ntpl-consent .c-no`) LOSES to it, so the border
 * colour written here was never applied: the refusal had no border at
 * all, and it read as a label. */
.ntpl-consent .c-actions .c-yes { background: var(--brand); color: #fff; }
.ntpl-consent .c-actions .c-yes:hover { background: #4f4fc4; }
/* THE REFUSAL LOOKS LIKE A BUTTON.
 *
 * It is the same size as the acceptance, but on its own it was a
 * transparent box with no border that could be seen — so it read as a
 * label, and a choice that looks like a label is a choice that does
 * not look like a choice. The two are the same SIZE and now they are
 * the same KIND of thing. */
.ntpl-consent .c-actions .c-no {
  background: rgba(255,255,255,.05); color: #d7dbe6;
  border-color: rgba(255,255,255,.30);
}
.ntpl-consent .c-actions .c-no:hover { background: rgba(255,255,255,.12); color: #fff; }

/* THE POPUP ON A BIG SCREEN — a card, not a bar.
 *
 * On a desktop the popup floats at the bottom of the visible page, with
 * a corner of its own and a shadow, so it reads as a thing that is
 * sitting on the page rather than as the edge of the page. It is still
 * at the bottom of the visible page: `position: fixed` with `bottom`
 * puts it there whatever the length of the page. */
@media (min-width: 1101px) {
  .ntpl-consent {
    left: 24px; right: 24px; bottom: 24px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
    overflow: hidden;
  }
  .ntpl-consent .c-box { padding: 18px 22px; }
}

/* THE TABLET — the bar is the whole width, and the buttons are UNDER
 * the text. They stay side by side: a refusal that is one under the
 * other is a refusal that is easy to miss.
 *
 * The text must NOT grow here: in a column, the `flex` of the text
 * would be its HEIGHT, and the bar would have a hole under the text
 * with the buttons at the bottom of it.
 *
 * And the bar never takes more than the half of the screen: the text is
 * long, and a popup that covers the page is a popup that is in the way.
 * When it does not fit, the TEXT scrolls and the buttons stay where they
 * are — a choice that is out of sight is a choice that is not made. */
@media (max-width: 1100px) {
  .ntpl-consent {
    max-height: 70vh;
    display: flex; flex-direction: column;
  }
  .ntpl-consent .c-box {
    flex-direction: column; align-items: stretch; gap: 14px;
    min-height: 0; flex: 1 1 auto;
  }
  .ntpl-consent .c-text { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
  .ntpl-consent .c-actions { flex: 0 0 auto; justify-content: flex-end; }
}

/* THE PHONE — the buttons take the whole width, side by side, and the
 * safe area of the phone is kept clear so the home bar does not sit on
 * top of them. */
@media (max-width: 640px) {
  .ntpl-consent { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .ntpl-consent .c-text p { font-size: 13px; }
  .ntpl-consent .c-notice { font-size: 13px !important; }
  .ntpl-consent .c-actions { width: 100%; }
  .ntpl-consent .c-actions button { flex: 1 1 0; min-width: 0; padding: 12px 10px; }
}
