/* Adeona's public site. Same tokens and shapes as the product
   (ui/src/theme.css, ui/src/glass.css): a quiet wash, glass panels with
   28px corners, one pill button, Outfit, solid-colour cards for owed work. */

@font-face {
  font-family: "Outfit";
  src: url("assets/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #e4e9f1;
  --wash: linear-gradient(115deg, #cfdcf3 0%, #e4e9f1 38%, #eef0e2 68%, #dcebdd 100%);
  --surface: rgba(255, 255, 255, 0.56);
  --raised: #ffffff;
  --tile: rgba(255, 255, 255, 0.6);
  --edge: rgba(255, 255, 255, 0.7);
  --line: rgba(20, 24, 32, 0.08);
  --line-strong: rgba(20, 24, 32, 0.2);
  --strong: #14161b;
  --text: #2a2e37;
  --muted: #5a616e;
  --accent: #17181c;
  --accent-hover: #30333b;
  --on-accent: #ffffff;
  --active: #2446e8;
  --shadow: rgba(40, 55, 90, 0.18);
  --card-late: #f2e24a;
  --card-late-fg: #1c1a05;
  --card-call: #2b4ef2;
  --card-call-fg: #ffffff;
  --card-meet: #111216;
  --card-meet-fg: #ffffff;
  --card-task: #2b7a96;
  --card-task-fg: #ffffff;
  --band-due-bg: #fbf0a8;
  --band-due-fg: #5c4a00;
  --band-done-bg: #d6f2e0;
  --band-done-fg: #165c38;
  --band-wait-bg: #dfe6ff;
  --band-wait-fg: #2238a8;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #101113;
    --wash: radial-gradient(70% 55% at 12% 0%, rgba(227, 240, 74, 0.09), transparent 70%),
      radial-gradient(60% 50% at 100% 100%, rgba(255, 148, 80, 0.07), transparent 70%);
    --surface: rgba(255, 255, 255, 0.055);
    --raised: #1d1f23;
    --tile: rgba(255, 255, 255, 0.06);
    --edge: rgba(255, 255, 255, 0.07);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.2);
    --strong: #f4f5f2;
    --text: #d9dbd5;
    --muted: #a0a49d;
    --accent: #e3f04a;
    --accent-hover: #eef66f;
    --on-accent: #14160a;
    --active: #e3f04a;
    --shadow: rgba(0, 0, 0, 0.5);
    --card-late: #ff9450;
    --card-late-fg: #1f0f02;
    --card-call: #e3f04a;
    --card-call-fg: #14160a;
    --card-meet: #f4f5f2;
    --card-meet-fg: #111216;
    --card-task: #33363c;
    --card-task-fg: #f4f5f2;
    --band-due-bg: #3f4212;
    --band-due-fg: #e9f27a;
    --band-done-bg: #173c2a;
    --band-done-fg: #a4e3bc;
    --band-wait-bg: #26303f;
    --band-wait-fg: #b9d0ff;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101113;
  --wash: radial-gradient(70% 55% at 12% 0%, rgba(227, 240, 74, 0.09), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, rgba(255, 148, 80, 0.07), transparent 70%);
  --surface: rgba(255, 255, 255, 0.055);
  --raised: #1d1f23;
  --tile: rgba(255, 255, 255, 0.06);
  --edge: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.2);
  --strong: #f4f5f2;
  --text: #d9dbd5;
  --muted: #a0a49d;
  --accent: #e3f04a;
  --accent-hover: #eef66f;
  --on-accent: #14160a;
  --active: #e3f04a;
  --shadow: rgba(0, 0, 0, 0.5);
  --card-late: #ff9450;
  --card-late-fg: #1f0f02;
  --card-call: #e3f04a;
  --card-call-fg: #14160a;
  --card-meet: #f4f5f2;
  --card-meet-fg: #111216;
  --card-task: #33363c;
  --card-task-fg: #f4f5f2;
  --band-due-bg: #3f4212;
  --band-due-fg: #e9f27a;
  --band-done-bg: #173c2a;
  --band-done-fg: #a4e3bc;
  --band-wait-bg: #26303f;
  --band-wait-fg: #b9d0ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--wash) fixed, var(--page);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--strong); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--active); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--raised); color: var(--strong); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ------------------------------------------------------------ top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  padding: 14px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.top__row { display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--strong); }
.brand svg { width: 26px; height: 34px; color: var(--accent); }
.brand span { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border-radius: 999px; text-decoration: none; color: var(--strong); font-size: 0.95rem;
}
.nav a:hover { background: var(--tile); }
.top__actions { display: flex; gap: 8px; align-items: center; }

/* -------------------------------------------------- one button system */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--tile); color: var(--strong);
  font: inherit; font-size: 0.95rem; font-weight: 500; text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { border-color: var(--line-strong); }
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn--primary:hover { background: var(--accent-hover); border-color: transparent; }
.btn--large { height: 48px; padding: 0 24px; font-size: 1rem; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 56px 0 40px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--band-wait-bg); color: var(--band-wait-fg);
  font-size: 0.85rem; font-weight: 500;
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin-top: 18px; }
.hero__lede { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

/* ---------------------------------------------------- glass and panels */
.glass {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -34px var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* The product, drawn: a small Today board with fabricated people. */
.board { padding: 18px; display: grid; gap: 12px; }
.board__head { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 6px; }
.board__title { font-size: 1.25rem; font-weight: 500; color: var(--strong); }
.board__date { font-size: 0.85rem; color: var(--muted); }
.board__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; }
.stat b { display: block; font-size: 1.6rem; font-weight: 500; color: var(--strong); line-height: 1.1; }
.stat span { font-size: 0.8rem; color: var(--muted); }
.board__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { border-radius: 22px; padding: 14px 16px; min-height: 112px; display: flex; flex-direction: column; gap: 4px; }
.card__kind { font-size: 0.78rem; font-weight: 600; opacity: 0.85; }
.card__who { font-size: 1.05rem; font-weight: 500; line-height: 1.2; }
.card__what { font-size: 0.85rem; opacity: 0.85; }
.card__when { margin-top: auto; font-size: 0.8rem; font-weight: 500; }
.card--late { background: var(--card-late); color: var(--card-late-fg); }
.card--call { background: var(--card-call); color: var(--card-call-fg); }
.card--meet { background: var(--card-meet); color: var(--card-meet-fg); }
.card--task { background: var(--card-task); color: var(--card-task-fg); }

/* ------------------------------------------------------------ sections */
.section { padding: 56px 0; }
.section__head { max-width: 44rem; margin-bottom: 28px; }
.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section__head p { margin-top: 12px; color: var(--muted); font-size: 1.08rem; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.flow li { padding: 22px; counter-increment: step; }
.flow li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 0.9rem;
}
.flow h3 { font-size: 1.1rem; margin-top: 14px; }
.flow p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.bento > * { padding: 24px; grid-column: span 2; }
.bento > .wide { grid-column: span 3; }
.bento h3 { font-size: 1.15rem; }
.bento p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; margin-bottom: 12px;
  background: var(--band-done-bg); color: var(--band-done-fg);
}
.tag--soon { background: var(--band-due-bg); color: var(--band-due-fg); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split > * { padding: 28px; }
.split h3 { font-size: 1.3rem; }
.split p { margin-top: 10px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); font-size: 0.98rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 999px;
  background: var(--band-done-bg);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: calc(0.3em + 4px); width: 5px; height: 8px;
  border: solid var(--band-done-fg); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq details { padding: 4px 22px; }
.faq summary {
  cursor: pointer; padding: 16px 0; font-size: 1.05rem; font-weight: 500; color: var(--strong);
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

.cta { padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.cta h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.cta p { margin-top: 12px; color: var(--muted); }
.slot {
  min-height: 260px; border-radius: var(--radius-md); border: 1px dashed var(--line-strong);
  background: var(--tile); display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted);
}
.slot iframe { width: 100%; min-height: 560px; border: 0; border-radius: var(--radius-md); }

.foot { padding: 36px 0 48px; color: var(--muted); font-size: 0.9rem; }
.foot__row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; }
.foot a { text-underline-offset: 3px; }

/* --------------------------------------------------------------- phone */
@media (max-width: 900px) {
  .nav { display: none; }
  .top__actions { margin-left: auto; }
  .hero { padding-top: 28px; }
  .hero__grid, .cta, .split { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .bento > *, .bento > .wide { grid-column: span 6; }
  .section { padding: 40px 0; }
  .cta { padding: 24px; }
}
@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; }
  .board__cards { grid-template-columns: 1fr; }
  .top__actions .btn--primary { display: none; }
  .hero__cta .btn { width: 100%; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Theme switch: a moon while the page is light, a sun while it is dark. */
.btn--icon { width: 40px; padding: 0; }
.btn--icon svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* An embedded Adeona form or calendar sits in a solid panel so it reads as
   part of the page in both themes. */
.embed { border-radius: var(--radius-md); overflow: hidden; background: var(--raised); border: 1px solid var(--line); }
.embed iframe { display: block; }
