/* Shared styles for the public pages: the landing page, About,
 Features, FAQ and Importing. Lifted out of landing.html when those
 pages were added, so they look like one site rather than four.
 The app itself does not use this file. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:       #0a0a0a;
      --surface:  #111111;
      --border:   #222222;
      --text:     #f0f0f0;
      --muted:    #666666;
      --accent:   #ffffff;
      --accent2:  #999999;
    }

    html { scroll-behavior: smooth; }

    /* ── Links in body copy ────────────────────────────────────────────────
       There was no rule for a plain <a>, so links inside paragraphs fell back
       to the browser default blue. Against this page's near-black background
       that is close to unreadable, which is what people reported. These pages
       are monochrome by design, so a link reads as body text with a dim rule
       under it, brightening on hover.

       The anchors that are really controls (nav, footer, buttons) opt out
       below; their own rules already set a colour, and a class selector beats
       this one, so only the underline needs undoing. */
    a {
      color: var(--text);
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-decoration-color: var(--muted);
      text-underline-offset: 3px;
      transition: text-decoration-color 150ms, color 150ms;
    }
    a:hover { text-decoration-color: var(--text); }
    a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }

    .nav-logo,
    .nav-links a,
    .nav-cta,
    .footer-links a,
    .btn-primary,
    .btn-ghost { text-decoration: none; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'DM Mono', monospace;
      font-weight: 300;
      font-size: 14px;
      line-height: 1.7;
      overflow-x: hidden;
    }

    /* ── Grain overlay ─────────────────────────────────────────────────── */
    /* A small pre-made noise tile. This used to be an SVG feTurbulence
       filter with no size, which the browser computed afresh over the whole
       screen at full resolution, on a fixed layer redrawn while scrolling.
       Opening a link to these pages in the Android app froze the phone. */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("/grain.png");
      background-size: 128px 128px;
      pointer-events: none;
      z-index: 9999;
      opacity: 0.6;
    }

    /* ── Nav ───────────────────────────────────────────────────────────── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.5rem 3rem;
      border-bottom: 1px solid transparent;
      transition: border-color 0.4s, background 0.4s;
    }
    nav.scrolled {
      background: rgba(10, 9, 8, 0.92);
      border-color: var(--border);
      backdrop-filter: blur(12px);
    }
    .nav-logo {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.5rem;
      font-weight: 300;
      letter-spacing: 0.12em;
      color: var(--text);
      text-decoration: none;
    }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 2.5rem;
    }
    .nav-links a {
      color: var(--muted);
      text-decoration: none;
      font-size: 12px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--text); }
    .nav-cta {
      padding: 0.5rem 1.25rem;
      border: 1px solid var(--accent);
      color: var(--accent) !important;
      border-radius: 2px;
    }
    .nav-cta:hover { background: var(--accent) !important; color: var(--bg) !important; }

    /* Language picker (site-i18n.js). Kept outside .nav-links, which hide on
       phones, so it stays reachable there. */
    .lang-picker {
      margin-left: auto;
      margin-right: 2rem;
      background: transparent;
      color: var(--muted);
      border: 1px solid var(--border);
      border-radius: 2px;
      padding: 0.35rem 0.5rem;
      font: inherit;
      font-size: 12px;
      cursor: pointer;
    }
    .lang-picker:hover, .lang-picker:focus { color: var(--text); }
    .lang-picker option { background: var(--bg); color: var(--text); }
    @media (max-width: 768px) { .lang-picker { margin-right: 0; } }

    /* ── Hero ──────────────────────────────────────────────────────────── */
    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 8rem 2rem 6rem;
      position: relative;
    }
    .hero-glow {
      position: absolute;
      top: 30%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 600px;
      height: 600px;
      background: radial-gradient(ellipse, rgba(255,255,255,0.03) 0%, transparent 70%);
      pointer-events: none;
    }
    .hero-label {
      font-size: 11px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 2rem;
      opacity: 0;
      animation: fadeUp 0.8s 0.2s forwards;
    }
    .hero-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(3.5rem, 10vw, 7.5rem);
      font-weight: 300;
      line-height: 0.95;
      letter-spacing: -0.02em;
      color: var(--text);
      margin-bottom: 2rem;
      opacity: 0;
      animation: fadeUp 0.8s 0.35s forwards;
    }
    .hero-sub {
      max-width: 480px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.8;
      margin-bottom: 3rem;
      opacity: 0;
      animation: fadeUp 0.8s 0.5s forwards;
    }
    .hero-actions {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      opacity: 0;
      animation: fadeUp 0.8s 0.65s forwards;
    }
    .btn-primary {
      padding: 0.85rem 2rem;
      background: var(--accent);
      color: var(--bg);
      text-decoration: none;
      font-family: 'DM Mono', monospace;
      font-size: 12px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      border-radius: 2px;
      transition: opacity 0.2s, transform 0.2s;
      display: inline-block;
    }
    .btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
    .btn-ghost {
      padding: 0.85rem 2rem;
      border: 1px solid var(--border);
      color: var(--muted);
      text-decoration: none;
      font-family: 'DM Mono', monospace;
      font-size: 12px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      border-radius: 2px;
      transition: border-color 0.2s, color 0.2s;
      display: inline-block;
    }
    .btn-ghost:hover { border-color: #666666; color: var(--text); }

    .hero-note {
      margin-top: 2rem;
      font-size: 11px;
      color: var(--muted);
      letter-spacing: 0.05em;
      opacity: 0;
      animation: fadeUp 0.8s 0.8s forwards;
    }

    /* ── Divider ───────────────────────────────────────────────────────── */
    .divider {
      width: 1px;
      height: 80px;
      background: linear-gradient(to bottom, transparent, var(--border), transparent);
      margin: 0 auto;
    }

    /* ── Section ───────────────────────────────────────────────────────── */
    section {
      padding: 7rem 2rem;
      max-width: 1100px;
      margin: 0 auto;
    }
    .section-label {
      font-size: 11px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1rem;
    }
    .section-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 300;
      line-height: 1.1;
      margin-bottom: 1.5rem;
    }
    .section-body {
      color: var(--muted);
      max-width: 520px;
      line-height: 1.9;
    }

    /* ── Feature grid ──────────────────────────────────────────────────── */
    .features {
      border-top: 1px solid var(--border);
    }
    .features-intro {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6rem;
      align-items: center;
      margin-bottom: 5rem;
    }
    .feature-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
    }
    .feature-card {
      background: var(--bg);
      padding: 2rem 2rem 2.5rem;
      transition: background 0.2s;
    }
    .feature-card:hover { background: var(--surface); }
    .feature-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.25rem;
      font-weight: 400;
      margin-bottom: 0.6rem;
      color: var(--text);
    }
    .feature-desc {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.75;
    }

    /* ── Who it's for ──────────────────────────────────────────────────── */
    .who {
      border-top: 1px solid var(--border);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6rem;
      align-items: start;
    }
    .who-list {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      margin-top: 2rem;
    }
    .who-item {
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--border);
    }
    .who-item:last-child { border-bottom: none; }
    .who-symbol {
      color: var(--accent);
      font-size: 16px;
      flex-shrink: 0;
      margin-top: 2px;
    }
    .who-text { color: var(--muted); font-size: 13px; line-height: 1.75; }
    .who-text strong { color: var(--text); font-weight: 400; display: block; margin-bottom: 0.2rem; }

    /* ── Privacy section ───────────────────────────────────────────────── */
    .privacy {
      border-top: 1px solid var(--border);
      text-align: center;
      padding-top: 5rem;
      padding-bottom: 5rem;
    }
    .privacy-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2px;
      background: var(--border);
      border: 1px solid var(--border);
      margin-top: 3rem;
    }
    .privacy-card {
      background: var(--surface);
      padding: 2rem 1.5rem;
    }
    .privacy-card-label {
      font-size: 11px;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--accent2);
      margin-bottom: 0.5rem;
    }
    .privacy-card-text {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.7;
    }

    /* ── CTA ───────────────────────────────────────────────────────────── */
    .cta-section {
      border-top: 1px solid var(--border);
      text-align: center;
      padding: 8rem 2rem;
    }
    .cta-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(2.5rem, 6vw, 5rem);
      font-weight: 300;
      line-height: 1.1;
      margin-bottom: 1.5rem;
    }
    .cta-sub {
      color: var(--muted);
      margin-bottom: 3rem;
      font-size: 14px;
    }

    /* ── Footer ────────────────────────────────────────────────────────── */
    footer {
      border-top: 1px solid var(--border);
      padding: 2rem 3rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .footer-logo {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.1rem;
      font-weight: 300;
      letter-spacing: 0.1em;
      color: var(--muted);
    }
    .footer-links {
      display: flex;
      gap: 2rem;
    }
    .footer-links a {
      color: var(--muted);
      text-decoration: none;
      font-size: 12px;
      letter-spacing: 0.08em;
      transition: color 0.2s;
    }
    .footer-links a:hover { color: var(--text); }

    /* ── Animations ────────────────────────────────────────────────────── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ── Mobile ────────────────────────────────────────────────────────── */
    @media (max-width: 768px) {
      nav { padding: 1.25rem 1.5rem; }
      .nav-links { display: none; }
      .nav-cta { display: block !important; }
      .features-intro,
      .who { grid-template-columns: 1fr; gap: 3rem; }
      .privacy-grid { grid-template-columns: 1fr; }
      section { padding: 4rem 1.5rem; }
      footer { padding: 1.5rem; flex-direction: column; text-align: center; }
      .hero { padding: 7rem 1.5rem 5rem; }
    }
