/* ==========================================================================
   Eazy Reminder — Aurora Glass design system for eazyreminder.com
   Ported from the shipped app theme (mobile/lib/design/aurora/*) and the
   original template 07-aurora-glass.html. Token names mirror the Dart
   token names so the two stay comparable.
   No build step, no CDN — this file is the whole design system.
   ========================================================================== */

/* ---------- 0. Fonts ----------------------------------------------------
   Plus Jakarta Sans, self-hosted (SIL OFL 1.1 — see assets/fonts/OFL.txt).
   Same family the app ships. Subset to Latin + ₹ and served locally so no
   visitor data goes to a font CDN and there is no third-party round trip.
   ------------------------------------------------------------------------ */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-400.woff') format('woff');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-500.woff') format('woff');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-600.woff') format('woff');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-700.woff') format('woff');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-800.woff') format('woff');
}

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* canvas + aurora mesh */
  --au-canvas: #EEF2FF;
  --au-blob-blue: #C3D3FF;
  --au-blob-violet: #E5D6FF;
  --au-blob-aqua: #C9F0F6;

  /* glass fills */
  --au-glass-faint: rgba(255, 255, 255, .349);
  --au-glass-low: rgba(255, 255, 255, .451);
  --au-glass-track: rgba(255, 255, 255, .502);
  --au-glass-control: rgba(255, 255, 255, .549);
  --au-glass-button: rgba(255, 255, 255, .600);
  --au-glass: rgba(255, 255, 255, .620);
  --au-glass-row: rgba(255, 255, 255, .698);
  --au-glass-strong: rgba(255, 255, 255, .851);
  --au-segment-thumb: rgba(255, 255, 255, .620);
  --au-hover-fill: rgba(255, 255, 255, .549);
  --au-nav-fill: rgba(255, 255, 255, .549);
  --au-sheet-fill: rgba(255, 255, 255, .878);
  --au-surface: #F7F8FF;
  --au-nav-selected-fill: #FFFFFF;

  /* borders */
  --au-border-soft: rgba(255, 255, 255, .698);
  --au-border: rgba(255, 255, 255, .851);
  --au-border-bright: rgba(255, 255, 255, .902);
  --au-divider: rgba(255, 255, 255, .851);
  --au-check-border: #7E85AC;
  --au-ring-track: rgba(0, 0, 0, .071);
  --au-focus-ring: #3558E8;

  /* brand */
  --au-primary: #3558E8;
  --au-primary-fill: #3E63F0;
  --au-primary-end: #7B4DEB;
  --au-on-primary: #FFFFFF;
  --au-primary-soft: rgba(62, 99, 240, .122);

  /* text */
  --au-text: #1A1F3D;
  --au-text-2: #5F6790;
  --au-text-3: #8A90B5;
  --au-nav-idle: #3B4268;

  /* semantic */
  --au-success: #11713A;
  --au-warning: #A14B07;
  --au-danger: #C62828;
  --au-danger-fill: #DC2626;
  --au-danger-soft: rgba(239, 68, 68, .122);
  --au-info: #0B63C4;

  /* priority + content-type accents */
  --au-pr-normal: #0A7066;
  --au-pr-important: #6D3FD6;
  --au-pr-critical: #C62828;
  --au-type-text: #C2703F;
  --au-type-photo: #2E9E95;
  --au-type-voice: #6F5FD0;
  --au-type-location: #D8515F;
  --au-type-document: #5A63D8;

  /* bright graphic accents — identical in both themes */
  --au-accent-blue: #2E6FEC;
  --au-accent-violet: #8B5CF6;
  --au-accent-teal: #14B8A6;
  --au-accent-amber: #F59E0B;
  --au-accent-rose: #EF4444;
  --au-accent-green: #22C55E;
  --au-accent-pink: #EC4899;
  --au-accent-orange: #F97316;
  --au-accent-cyan: #06B6D4;
  --au-tint-scale: 1;

  /* shadows — negative spread, navy ambient (never black) in light */
  --au-shadow-glass: 0 10px 30px -18px rgba(40, 50, 120, .45);
  --au-shadow-floating: 0 20px 50px -30px rgba(40, 50, 120, .50);
  --au-shadow-nav: 0 16px 40px -20px rgba(40, 50, 120, .50);
  --au-shadow-brand: 0 10px 22px -10px rgba(62, 99, 240, .90);
  --au-shadow-active-item: 0 8px 20px -12px rgba(62, 99, 240, .70);
  --au-shadow-tab-active: 0 8px 18px -10px rgba(62, 99, 240, .80);
  --au-shadow-segment: 0 1px 3px rgba(0, 0, 0, .10);

  /* radii */
  --au-r-sheet: 28px;
  --au-r-sidebar: 26px;
  --au-r-nav: 24px;
  --au-r-card: 22px;
  --au-r-row: 20px;
  --au-r-tile: 18px;
  --au-r-tab: 16px;
  --au-r-control: 14px;
  --au-r-nav-item: 13px;
  --au-r-icon-tile: 12px;
  --au-r-small-tile: 10px;
  --au-r-tag: 7px;
  --au-r-chip: 999px;

  /* space, blur, motion */
  --au-gap: 18px;
  --au-blur: 20px;
  --au-blur-sidebar: 24px;
  --au-blur-nav: 22px;
  --au-motion: 180ms;
  --au-motion-press: 90ms;
  --au-motion-overlay: 260ms;
  --au-ease: cubic-bezier(.215, .61, .355, 1);

  /* type */
  --au-font: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, sans-serif;

  /* marketing-only layout tokens */
  --au-wrap: 1120px;
  --au-wrap-narrow: 760px;
  --au-section-y: 92px;
}

[data-theme="dark"] {
  --au-canvas: #0B1020;
  --au-blob-blue: #17255E;
  --au-blob-violet: #29195C;
  --au-blob-aqua: #08303A;

  --au-glass-faint: rgba(255, 255, 255, .039);
  --au-glass-low: rgba(255, 255, 255, .051);
  --au-glass-track: rgba(255, 255, 255, .059);
  --au-glass-control: rgba(255, 255, 255, .071);
  --au-glass-button: rgba(255, 255, 255, .078);
  --au-glass: rgba(255, 255, 255, .078);
  --au-glass-row: rgba(255, 255, 255, .102);
  --au-glass-strong: rgba(255, 255, 255, .141);
  --au-segment-thumb: rgba(255, 255, 255, .141);
  --au-hover-fill: rgba(255, 255, 255, .071);
  --au-nav-fill: rgba(21, 27, 51, .800);
  --au-sheet-fill: rgba(21, 27, 51, .922);
  --au-surface: #151B33;
  --au-nav-selected-fill: rgba(255, 255, 255, .141);

  --au-border-soft: rgba(255, 255, 255, .078);
  --au-border: rgba(255, 255, 255, .122);
  --au-border-bright: rgba(255, 255, 255, .161);
  --au-divider: rgba(255, 255, 255, .102);
  --au-check-border: #959EC2;
  --au-ring-track: rgba(255, 255, 255, .102);
  --au-focus-ring: #A3B5FF;

  --au-primary: #A3B5FF;
  --au-primary-fill: #4A63E8;
  --au-primary-end: #7C55E8;
  --au-primary-soft: rgba(163, 181, 255, .180);

  --au-text: #EEF1FB;
  --au-text-2: #B4BCD9;
  --au-text-3: #8890B4;
  --au-nav-idle: #C3CAE6;

  --au-success: #4ADE80;
  --au-warning: #FBBF24;
  --au-danger: #FFA8A8;
  --au-danger-fill: #CF3A3A;
  --au-danger-soft: rgba(255, 107, 107, .180);
  --au-info: #8CC8FF;

  --au-pr-normal: #5FD9CD;
  --au-pr-important: #CBBBFF;
  --au-pr-critical: #FFA8A8;
  --au-type-text: #E39A6B;
  --au-type-photo: #4FC2B8;
  --au-type-voice: #A598F0;
  --au-type-location: #F07C88;
  --au-type-document: #8F96F0;
  --au-tint-scale: 1.6;

  --au-shadow-glass: 0 10px 30px -18px rgba(0, 0, 0, .70);
  --au-shadow-floating: 0 20px 50px -30px rgba(0, 0, 0, .80);
  --au-shadow-nav: 0 16px 40px -20px rgba(0, 0, 0, .80);
  --au-shadow-brand: 0 10px 22px -10px rgba(74, 99, 232, .60);
  --au-shadow-active-item: 0 8px 20px -12px rgba(0, 0, 0, .50);
  --au-shadow-tab-active: 0 8px 18px -10px rgba(0, 0, 0, .50);
  --au-shadow-segment: none;
}

/* ---------- 2. Base ----------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  font-family: var(--au-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--au-text);
  background: var(--au-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The signature aurora mesh. Fixed, so it never scrolls with content.
   Paint order is the template's: blue over violet over aqua. */
body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
  animation: aurora-drift 54s ease-in-out infinite alternate;
  background:
    radial-gradient(1100px 700px at 0% 0%, var(--au-blob-blue) 0%, transparent 60%),
    radial-gradient(1000px 800px at 100% 0%, var(--au-blob-violet) 0%, transparent 55%),
    radial-gradient(900px 700px at 60% 100%, var(--au-blob-aqua) 0%, transparent 55%),
    var(--au-canvas);
}

@media (max-width: 600px) {
  body::before {
    background:
      radial-gradient(420px 380px at 0% 0%, var(--au-blob-blue) 0%, transparent 70%),
      radial-gradient(420px 420px at 100% 20%, var(--au-blob-violet) 0%, transparent 65%),
      radial-gradient(420px 380px at 50% 100%, var(--au-blob-aqua) 0%, transparent 65%),
      var(--au-canvas);
  }
}

a { color: inherit; text-decoration: none; }

img, svg, video { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--au-focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--au-primary-soft); color: var(--au-text); }

/* Lucide-style icons */
svg.i {
  width: var(--s, 18px);
  height: var(--s, 18px);
  stroke: currentColor;
  fill: none;
  stroke-width: var(--w, 1.9);
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 50%; top: -60px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--au-r-control);
  background: var(--au-surface);
  box-shadow: var(--au-shadow-floating);
  font-weight: 700;
  transition: top var(--au-motion) var(--au-ease);
}
.skip:focus { top: 12px; }

.tab-nums { font-variant-numeric: tabular-nums; }
.clamp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 3. Typography ----------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--au-text);
}

.display {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 800;
}

.h-section {
  font-size: clamp(27px, 3.4vw, 38px);
  letter-spacing: -.025em;
}

.h-card { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }

.lead {
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--au-text-2);
  font-weight: 500;
}

.body-2 { font-size: 15px; color: var(--au-text-2); line-height: 1.62; }
.caption { font-size: 12.5px; font-weight: 600; color: var(--au-text-2); }

.section-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--au-text-2);
}

.overline {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.wordmark-eazy { color: #6B45DE; }
.wordmark-reminder { color: #2E6FEC; }
[data-theme="dark"] .wordmark-eazy { color: #B9A6FF; }
[data-theme="dark"] .wordmark-reminder { color: #8FB6FF; }

.grad-text {
  background: linear-gradient(135deg, var(--au-primary-fill), var(--au-primary-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Layout --------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--au-wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.wrap-narrow { max-width: var(--au-wrap-narrow); }

.section { padding-block: var(--au-section-y); }
.section-sm { padding-block: 56px; }

@media (max-width: 760px) {
  :root { --au-section-y: 64px; }
}

.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h-section { margin-top: 10px; }
.section-head .lead { margin-top: 12px; }

.grid { display: grid; gap: var(--au-gap); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
}

.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: var(--au-gap); }
.spacer { flex: 1; }

/* ---------- 5. Glass surfaces ------------------------------------------- */
.card {
  background: var(--au-glass);
  border: 1px solid var(--au-border);
  border-radius: var(--au-r-card);
  box-shadow: var(--au-shadow-glass);
  backdrop-filter: blur(var(--au-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--au-blur)) saturate(140%);
  min-width: 0;
}

.card-pad { padding: 22px; }

.card-hover {
  transition: background var(--au-motion) var(--au-ease),
              transform var(--au-motion) var(--au-ease),
              box-shadow var(--au-motion) var(--au-ease);
}
.card-hover:hover {
  background: var(--au-glass-strong);
  transform: translateY(-3px);
  box-shadow: var(--au-shadow-floating);
}

.well {
  background: var(--au-glass-faint);
  border: 1px solid var(--au-border-soft);
  border-radius: var(--au-r-card);
}

.divider { height: 1px; background: var(--au-divider); border: 0; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

/* ---------- 6. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--au-r-control);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--au-motion) var(--au-ease),
              transform var(--au-motion) var(--au-ease),
              box-shadow var(--au-motion) var(--au-ease),
              color var(--au-motion) var(--au-ease);
}

.btn:active { transform: translateY(1px); }

.btn-p {
  background: linear-gradient(135deg, var(--au-primary-fill), var(--au-primary-end));
  color: var(--au-on-primary);
  box-shadow: var(--au-shadow-brand);
}
.btn-p:hover { box-shadow: 0 14px 28px -10px rgba(62, 99, 240, .95); transform: translateY(-2px); }

.btn-g {
  background: var(--au-glass-button);
  border: 1px solid var(--au-border);
  color: var(--au-text);
  backdrop-filter: blur(var(--au-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--au-blur)) saturate(140%);
}
.btn-g:hover { background: var(--au-glass-strong); transform: translateY(-2px); }

.btn-ghost { color: var(--au-primary); }
.btn-ghost:hover { background: var(--au-primary-soft); }

.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* on the brand gradient */
.on-brand .btn-glass {
  background: rgba(16, 22, 63, .278);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
}
.on-brand .btn-glass:hover { background: rgba(16, 22, 63, .4); }
.on-brand .btn-solid { background: #fff; color: var(--au-primary-fill); }
.on-brand :focus-visible { outline-color: #fff; }

/* store badges */
.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: var(--au-r-tile);
  background: var(--au-text);
  color: #fff;
  transition: transform var(--au-motion) var(--au-ease), box-shadow var(--au-motion) var(--au-ease);
  box-shadow: var(--au-shadow-glass);
}
.store:hover { transform: translateY(-2px); box-shadow: var(--au-shadow-floating); }
.store span { display: block; font-size: 10.5px; opacity: .8; font-weight: 600; line-height: 1.2; }
.store strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; }
[data-theme="dark"] .store { background: #fff; color: #10142A; }

/* ---------- 7. Chips, tags, pills --------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--au-r-chip);
  background: var(--au-glass-button);
  border: 1px solid var(--au-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--au-text);
  white-space: nowrap;
  transition: background var(--au-motion) var(--au-ease), color var(--au-motion) var(--au-ease);
}
.chip:hover { background: var(--au-glass-strong); }
.chip[aria-selected="true"], .chip.on {
  background: var(--au-nav-selected-fill);
  color: var(--au-primary);
  box-shadow: var(--au-shadow-active-item);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--au-r-tag);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--au-r-chip);
  background: var(--au-glass);
  border: 1px solid var(--au-border);
  box-shadow: var(--au-shadow-glass);
  backdrop-filter: blur(var(--au-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--au-blur)) saturate(140%);
  font-size: 13px;
  font-weight: 600;
  color: var(--au-text-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: var(--au-r-chip);
  background: var(--au-primary-soft);
  color: var(--au-primary);
  font-size: 11px;
  font-weight: 800;
}

/* icon tile — tint() of an accent, per the app's tint rule */
.itile {
  width: 44px;
  height: 44px;
  border-radius: var(--au-r-icon-tile);
  display: grid;
  place-items: center;
  flex: none;
  background: color-mix(in srgb, var(--c, var(--au-accent-blue)) 13%, transparent);
  color: var(--c, var(--au-accent-blue));
}
[data-theme="dark"] .itile {
  background: color-mix(in srgb, var(--c, var(--au-accent-blue)) 21%, transparent);
}
.itile-sm { width: 36px; height: 36px; border-radius: var(--au-r-small-tile); }
.itile-lg { width: 54px; height: 54px; border-radius: var(--au-r-tile); }

/* ---------- 8. Site header ---------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px 0;
}

.site-head .bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 0 10px 0 16px;
  border-radius: var(--au-r-nav);
  background: var(--au-nav-fill);
  border: 1px solid var(--au-border-bright);
  box-shadow: var(--au-shadow-nav);
  backdrop-filter: blur(var(--au-blur-nav)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--au-blur-nav)) saturate(140%);
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 11px; object-fit: contain; }
.brand .name { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  padding: 9px 13px;
  border-radius: var(--au-r-nav-item);
  font-size: 14px;
  font-weight: 600;
  color: var(--au-nav-idle);
  transition: background var(--au-motion) var(--au-ease), color var(--au-motion) var(--au-ease);
}
.site-nav a:hover { background: var(--au-hover-fill); }
.site-nav a[aria-current="page"] {
  background: var(--au-nav-selected-fill);
  color: var(--au-primary);
  box-shadow: var(--au-shadow-active-item);
}

.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.ib {
  width: 42px;
  height: 42px;
  border-radius: var(--au-r-control);
  display: grid;
  place-items: center;
  color: var(--au-text-2);
  background: var(--au-glass-control);
  border: 1px solid var(--au-border);
  transition: background var(--au-motion) var(--au-ease), color var(--au-motion) var(--au-ease);
}
.ib:hover { background: var(--au-glass-strong); color: var(--au-text); }

.menu-btn { display: none; }

.mobile-menu {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--au-r-card);
  background: var(--au-sheet-fill);
  border: 1px solid var(--au-border-bright);
  box-shadow: var(--au-shadow-floating);
  backdrop-filter: blur(var(--au-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--au-blur)) saturate(140%);
}
.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--au-r-nav-item);
  font-weight: 600;
  color: var(--au-nav-idle);
}
.mobile-menu a:hover { background: var(--au-hover-fill); }
.mobile-menu .btn { margin-top: 8px; }

@media (max-width: 980px) {
  .site-nav { display: none; }
  .menu-btn { display: grid; }
  .head-actions .btn-cta { display: none; }
}

/* ---------- 9. Hero ----------------------------------------------------- */
.hero { padding-block: clamp(48px, 7vw, 86px) var(--au-section-y); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero .display { margin-top: 18px; }
.hero .lead { margin-top: 20px; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.hero-meta div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--au-text-2); }

@media (max-width: 980px) {
  /* Copy first on narrow screens: a full-height phone mock above the headline
     pushes every word below the fold. */
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-bottom: 48px; }
  .phone { max-width: 290px; }
}
@media (max-width: 560px) {
  .phone { max-width: 250px; border-radius: 34px; padding: 9px; }
  .phone .screen { border-radius: 26px; padding: 12px 10px; gap: 8px; }
  .phone .notch { top: 16px; width: 70px; }
}

/* brand-gradient band (hero card, CTA band) */
.brand-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--au-r-card);
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(120deg, var(--au-primary-fill), var(--au-primary-end));
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: var(--au-shadow-floating);
  color: #fff;
}
.brand-band h2, .brand-band h3 { color: #fff; }
.brand-band .lead { color: rgba(255, 255, 255, .88); }
.brand-band .glass-panel {
  position: relative;
  border-radius: var(--au-r-tile);
  padding: 16px;
  background: rgba(16, 22, 63, .278);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- 10. Feature + stat cards ------------------------------------ */
.feature {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.feature p { font-size: 14.5px; color: var(--au-text-2); line-height: 1.6; }
.feature .tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

.stat {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat small { font-size: 12.5px; font-weight: 600; color: var(--au-text-2); }

/* step list */
.step { padding: 24px; position: relative; }
.step .num {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--au-primary-fill), var(--au-primary-end));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--au-shadow-brand);
}
.step h3 { margin-top: 16px; font-size: 17px; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--au-text-2); }

/* ---------- 11. App mockups (CSS only, no screenshots needed) ----------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  aspect-ratio: 340 / 690;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55));
  border: 1px solid var(--au-border-bright);
  box-shadow: var(--au-shadow-floating), 0 2px 6px rgba(40, 50, 120, .18);
  backdrop-filter: blur(var(--au-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--au-blur)) saturate(140%);
}
[data-theme="dark"] .phone {
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
}
.phone .screen {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(420px 380px at 0% 0%, var(--au-blob-blue) 0%, transparent 70%),
    radial-gradient(420px 420px at 100% 20%, var(--au-blob-violet) 0%, transparent 65%),
    radial-gradient(420px 380px at 50% 100%, var(--au-blob-aqua) 0%, transparent 65%),
    var(--au-canvas);
}
.phone .notch {
  position: absolute;
  left: 50%; top: 20px;
  transform: translateX(-50%);
  width: 86px; height: 5px;
  border-radius: 99px;
  background: var(--au-text);
  opacity: .22;
}

/* reminder row — the app's signature list item */
.rr {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--au-r-row);
  background: var(--au-glass-row);
  border: 1px solid var(--au-border);
  box-shadow: var(--au-shadow-glass);
  backdrop-filter: blur(var(--au-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--au-blur)) saturate(140%);
}
.rr + .rr { margin-top: 8px; }
.rr .tm {
  width: 58px;
  flex: none;
  text-align: center;
  border-right: 1px solid var(--au-border);
  padding-right: 10px;
}
.rr .tm b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.rr .tm small { font-size: 10px; font-weight: 700; color: var(--au-text-2); }
.rr .bd { flex: 1; min-width: 0; }
.rr .tt { font-size: 14px; font-weight: 650; }
.rr .mt {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--au-text-2);
}
.rr .fd { display: inline-flex; align-items: center; gap: 5px; }
.rr .fd i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--au-accent-blue)); }
.rr .ck {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--au-check-border);
  flex: none;
  display: grid; place-items: center;
  color: #fff;
}
.rr .ck.on { border: 0; background: var(--c, var(--au-accent-green)); }
.rr.next { background: var(--au-primary-soft); border-color: var(--au-primary); }
.rr.next .tm b { color: var(--au-primary); }
.rr.over { border-color: rgba(239, 68, 68, .4); }
.rr.over .tm b { color: var(--au-danger); }
.rr.done { opacity: .55; }
.rr.done .tt { text-decoration: line-through; }

/* ---------- 12. Pricing ------------------------------------------------- */
.seg {
  display: inline-flex;
  background: var(--au-glass-low);
  border: 1px solid var(--au-border);
  border-radius: var(--au-r-control);
  padding: 3px;
  gap: 2px;
}
.seg button {
  padding: 8px 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--au-text-2);
  white-space: nowrap;
  transition: background var(--au-motion) var(--au-ease), color var(--au-motion) var(--au-ease);
}
.seg button[aria-pressed="true"] {
  background: var(--au-segment-thumb);
  color: var(--au-text);
  box-shadow: var(--au-shadow-segment);
}

.plan { padding: 26px; display: flex; flex-direction: column; }
.plan .name { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.plan .price {
  margin-top: 14px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan .price span { font-size: 15px; font-weight: 700; color: var(--au-text-2); letter-spacing: 0; }
.plan .note { margin-top: 8px; font-size: 13px; color: var(--au-text-2); }
.plan ul { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.plan li svg { color: var(--au-success); margin-top: 3px; }
.plan .btn { margin-top: 24px; }
.plan.featured {
  background: var(--au-glass-strong);
  border-color: var(--au-primary);
  box-shadow: var(--au-shadow-floating);
}
.plan .flag {
  position: absolute;
  top: 16px; right: 16px;
  padding: 3px 10px;
  border-radius: var(--au-r-chip);
  background: linear-gradient(135deg, var(--au-primary-fill), var(--au-primary-end));
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.plan-wrap { position: relative; }

.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-top: 1px solid var(--au-divider); }
.compare thead th { border-top: 0; font-size: 13px; font-weight: 800; }
.compare td + td, .compare th + th { text-align: center; width: 130px; }
.compare tbody tr:hover { background: var(--au-hover-fill); }
.compare .yes { color: var(--au-success); font-weight: 700; }
/* "not included" cells carry meaning, so they use the AA-passing
   secondary token, not the decorative tertiary one (2.99:1 on glass). */
.compare .no { color: var(--au-text-2); }

/* ---------- 13. FAQ / accordion ----------------------------------------- */
.faq-item {
  border-radius: var(--au-r-tile);
  background: var(--au-glass);
  border: 1px solid var(--au-border);
  backdrop-filter: blur(var(--au-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--au-blur)) saturate(140%);
  overflow: hidden;
}
.faq-item + .faq-item { margin-top: 10px; }
.faq-item > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background var(--au-motion) var(--au-ease);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { background: var(--au-hover-fill); }
.faq-item > summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--au-text-2);
  border-bottom: 2px solid var(--au-text-2);
  transform: rotate(45deg);
  transition: transform var(--au-motion) var(--au-ease);
}
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-item .answer {
  padding: 0 20px 20px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--au-text-2);
  white-space: pre-line;
}
.faq-item .answer a { color: var(--au-primary); font-weight: 600; text-decoration: underline; }

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  border-radius: var(--au-r-control);
  background: var(--au-glass-control);
  border: 1px solid var(--au-border);
  box-shadow: var(--au-shadow-glass);
  backdrop-filter: blur(var(--au-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--au-blur)) saturate(140%);
  color: var(--au-text-2);
}
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 15px;
  color: var(--au-text);
}
.search-field input::placeholder { color: var(--au-text-2); opacity: 1; }

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 4px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }

.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--au-text-2);
}

/* ---------- 14. Legal / prose ------------------------------------------- */
.prose { max-width: 48rem; }
.prose h2 {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 2.6rem;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.prose h2::before {
  content: "";
  width: 5px;
  height: 1.15rem;
  border-radius: 4px;
  flex: none;
  background: linear-gradient(180deg, var(--au-primary-fill), var(--au-primary-end));
}
.prose h3 { margin-top: 1.6rem; font-size: 1.04rem; font-weight: 700; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.75; color: var(--au-text-2); }
.prose p { margin-top: 1rem; }
.prose strong { color: var(--au-text); font-weight: 700; }
.prose ul, .prose ol { margin-top: .85rem; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.prose a { color: var(--au-primary); font-weight: 600; text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 1.1rem; font-size: 14.5px; }
.prose th, .prose td {
  border: 1px solid var(--au-border);
  padding: .7rem .8rem;
  text-align: left;
  vertical-align: top;
  color: var(--au-text-2);
}
.prose th { background: var(--au-glass-faint); color: var(--au-text); font-weight: 700; }
.prose .callout {
  margin-top: 1.2rem;
  padding: 16px 18px;
  border-radius: var(--au-r-tile);
  background: var(--au-glass);
  border: 1px solid var(--au-border);
  font-size: 15px;
  color: var(--au-text-2);
}
.prose .callout strong { color: var(--au-text); }
.prose .callout.warn {
  background: color-mix(in srgb, var(--au-accent-amber) 12%, var(--au-surface));
  border-color: color-mix(in srgb, var(--au-accent-amber) 34%, transparent);
}
.table-scroll { overflow-x: auto; }

.toc {
  padding: 20px 22px;
  border-radius: var(--au-r-card);
  background: var(--au-glass-faint);
  border: 1px solid var(--au-border-soft);
}
.toc ol { list-style: none; columns: 2; column-gap: 28px; margin-top: 12px; padding: 0; }
.toc li { break-inside: avoid; margin-bottom: 7px; }
.toc a { font-size: 14px; color: var(--au-text-2); font-weight: 600; }
.toc a:hover { color: var(--au-primary); text-decoration: underline; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* ---------- 15. Footer -------------------------------------------------- */
.site-foot { padding: 56px 0 40px; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.foot-grid h4 {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--au-text-2);
}
.foot-grid ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.foot-grid a { font-size: 14.5px; color: var(--au-text-2); font-weight: 500; }
.foot-grid a:hover { color: var(--au-primary); }
.foot-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--au-divider);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--au-text-2);
}
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------- 16. Motion -------------------------------------------------- */
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-1.6%, 1.2%, 0) scale(1.04); }
  100% { transform: translate3d(1.4%, -1%, 0) scale(1.02); }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--au-ease), transform 520ms var(--au-ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 17. In-app WebView (?embed=1) ------------------------------- */
/* The app opens the legal pages with ?embed=1 and expects content only. */
html.embed .site-head,
html.embed .site-foot,
html.embed .embed-hide { display: none !important; }
html.embed body::before { background: var(--au-canvas); }
html.embed main { padding-top: 1.25rem; }

/* ---------- 18. Page-specific helpers ---------------------------------- */
/* two-column layout inside a brand band (home: reliability section) */
@media (max-width: 860px) {
  .band-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* feature pages: side-by-side blocks that stack early */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* spec list (press kit, feature detail) */
.spec { list-style: none; display: flex; flex-direction: column; }
.spec li {
  display: flex;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--au-divider);
  font-size: 14.5px;
}
.spec li:first-child { border-top: 0; }
.spec li b { flex: none; width: 170px; font-weight: 700; }
.spec li span { color: var(--au-text-2); }
@media (max-width: 560px) {
  .spec li { flex-direction: column; gap: 4px; }
  .spec li b { width: auto; }
}

/* Utility kept for the two deep-link pages, whose inline scripts toggle a
   `hidden` class on the token hint. Do not rename — webLogin.html and
   shareInvite.html call classList.remove('hidden'). */
.hidden { display: none !important; }

/* Standalone deep-link pages (webLogin, shareInvite) */
.focus-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.focus-card { width: 100%; max-width: 520px; text-align: center; padding: 34px 28px; }
.focus-card .steps {
  list-style: none;
  text-align: left;
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: var(--au-r-tile);
  background: var(--au-glass-faint);
  border: 1px solid var(--au-border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--au-text-2);
}
.focus-card .steps b { color: var(--au-text); font-weight: 800; margin-right: 4px; }

/* ---------- 19. Bento grid ---------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--au-gap);
}
.bento > .b-tall { grid-column: span 3; grid-row: span 2; }
.bento > .b-half { grid-column: span 3; }
.bento > .b-third { grid-column: span 2; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > * { grid-column: span 1 !important; grid-row: auto !important; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 20. Showcase (tabbed) --------------------------------------- */
.showcase-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 4px;
  scrollbar-width: none;
}
.showcase-tabs::-webkit-scrollbar { display: none; }
.showcase-tabs .chip { flex: none; }

.showcase-pane[hidden] { display: none; }
.showcase-pane {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  animation: showcase-in 260ms var(--au-ease) both;
}
@keyframes showcase-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .showcase-pane { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-pane { animation: none; }
}

/* attachment strip used inside the showcase mocks */
.att {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--au-r-tile);
  background: var(--au-glass-faint);
  border: 1px solid var(--au-border-soft);
}
.att .thumb {
  width: 38px; height: 38px;
  border-radius: var(--au-r-small-tile);
  display: grid; place-items: center;
  flex: none;
  background: color-mix(in srgb, var(--c, var(--au-accent-blue)) 14%, transparent);
  color: var(--c, var(--au-accent-blue));
}
.att b { display: block; font-size: 13px; font-weight: 700; }
.att small { font-size: 11.5px; color: var(--au-text-2); font-weight: 600; }

/* waveform for the voice-note mock */
.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i {
  width: 3px;
  border-radius: 99px;
  background: var(--au-type-voice);
  opacity: .75;
}

/* staggered reveal: each child lands a beat after the last */
.stagger > * { transition-delay: calc(var(--i, 0) * 60ms); }
