/* Bento — bentoplanner.com
   One stylesheet for every page. Dark, warm, compartmentalized — like the app. */

:root {
  /* The icon's palette (scripts/make-icon.mjs): blue blocks, gray blocks,
     the amber now-line. Blue = interactive, amber = the thread, gray = calm. */
  --bg: #161616;
  --panel: #1e1e1e;
  --panel-2: #242424;
  --line: #2e2e2e;
  --text: #ececec;
  --dim: #a3a3a3;
  --blue: #5b8def;        /* the top block — buttons, links */
  --accent: #f5a623;      /* the now-line — highlights, the thread */
  --bar-gray: #6b7280;    /* the quiet blocks */
  --econ: #4fd1a5;
  --engl: #f58ea8;
  --good: #9ece6a;
  --max: 1060px;
}

* { box-sizing: border-box; }
/* Smooth scrolling and autoplaying loops both bow out under the OS
   reduced-motion setting (the scripts check the same preference). */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---- header ---- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(22, 22, 22, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; gap: 14px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
nav.main { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav.main a { color: var(--dim); font-size: 15px; white-space: nowrap; }
@media (max-width: 680px) {
  nav.main { gap: 14px; }
  nav.main a.hide-m { display: none; }
}
/* The mobile menu: a native <details> dropdown that exists only while the
   text links are hidden, so the header never loses destinations. No JS. */
nav.main details.mnav { display: none; position: relative; }
nav.main details.mnav summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--dim);
}
nav.main details.mnav summary::-webkit-details-marker { display: none; }
nav.main details.mnav[open] summary { color: var(--text); border-color: var(--dim); }
nav.main details.mnav .sheet {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 20;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; min-width: 190px; display: flex; flex-direction: column;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}
nav.main details.mnav .sheet a { display: block; padding: 11px 12px; border-radius: 8px; color: var(--text); font-size: 15px; }
nav.main details.mnav .sheet a:hover { background: var(--panel-2); text-decoration: none; }
@media (max-width: 680px) { nav.main details.mnav { display: block; } }
nav.main a:hover { color: var(--text); text-decoration: none; }
nav.main a.cta {
  /* Solid buttons wear the deeper button blue (see .btn.primary). */
  color: #fff; background: #3f6ccd; font-weight: 650;
  padding: 8px 16px; border-radius: 9px;
}

/* ---- hero ---- */
/* Vertical rhythm (2026-08-27): 96px between sections, 48px from a
   section subtitle to its content, 64px for the hero-internal download
   block. Each section owns its TOP gap; the page ends with the faq's 96. */
/* 64px from the header to the first title on EVERY page (Shannon 2026-08-27):
   the pricing page set the reference, and clicking between pages shouldn't
   make the title jump. */
.hero { padding: 64px 24px 0; text-align: center; }
/* Arriving at #features via the nav link should land its title at the same
   64px below the sticky header (65px tall): the section's own 96px top gap
   overshoots by 32, so the anchor point sits 65-32=33px into the header. */
#features { scroll-margin-top: 33px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 58px); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 auto 44px; max-width: 17ch; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--accent); }
/* Two short ledes, not one wall: an eye that wants to scroll gets a break
   line and bold anchors to catch on (Shannon 2026-08-27). */
.hero p.lede { font-size: clamp(17px, 2.4vw, 21px); line-height: 1.7; color: var(--dim); max-width: 60ch; margin: 0 auto 18px; }
.hero p.lede:last-of-type { margin-bottom: 42px; }
.hero p.hero-close { color: var(--text); font-style: italic; margin-top: 26px; }
.hero p.lede strong { color: var(--text); font-weight: 650; }
.hero p.lede em { font-style: normal; color: var(--accent); }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* The faint fill is what makes a quiet button read the same SIZE as the
   filled blue one: a bare 1px line on near-black half-vanishes and the shape
   looks shorter than it is (both measure 54px). */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 11px; font-weight: 650; font-size: 16px;
  border: 1px solid #3a3a3a; background: rgba(255,255,255,.045); color: var(--text);
}
.btn:hover { text-decoration: none; border-color: var(--dim); }
/* #3f6ccd, not --blue: white 16px button text on #5b8def is 3.2:1, under
   WCAG AA's 4.5. The deeper blue reads 4.96:1. Links keep --blue. */
.btn.primary { background: #3f6ccd; color: #fff; border-color: #3f6ccd; }
.btn.primary:hover { filter: brightness(1.06); }
.hero .fineprint { color: var(--dim); font-size: 13.5px; margin-top: 14px; }

/* ---- video slot ---- */
/* 16/10 to match the tour's 1920x1200, and `contain` rather than `cover`:
   the app fills the frame edge to edge, so cropping eats the interface. */
.video {
  margin: 48px auto 0; max-width: 880px; aspect-ratio: 16/10;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 15px;
}
.video video { width: 100%; height: 100%; border-radius: 16px; object-fit: contain; }

/* ---- bento grid ---- */
section.features { padding: 96px 24px 0; }
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(6, 1fr);
}
/* Tight padding so the tag hugs the corner and the clip gets the width
   (Shannon 2026-08-27). */
.cell {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 14px 20px;
}
.cell h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.cell h3 { margin: 0 8px 8px; }
.cell p { margin: 0 8px; color: var(--dim); font-size: 15.5px; line-height: 1.6; }
/* Bigger on purpose (Shannon 2026-08-27): the tag is what grounds the clip
   you're watching, so it has to register while scrolling. */
/* The tag IS the corner: negative margins cancel the cell padding so the
   pill sits flush on the edge, its outer radius matching the cell's 16px and
   only the inner corner rounding into the card. */
.cell .tag {
  display: block; width: max-content; font-size: 15px; font-weight: 700;
  letter-spacing: .06em; line-height: 1.3;
  text-transform: uppercase; margin: -14px 0 12px -14px; padding: 8px 20px;
  border-radius: 16px 0 14px 0;
}
.span3 { grid-column: span 3; }
.span2 { grid-column: span 2; }
.span4 { grid-column: span 4; }
.span6 { grid-column: span 6; }
@media (max-width: 860px) { .span2, .span3, .span4 { grid-column: span 6; } }

.t-amber { background: rgba(232,161,60,.14); color: var(--accent); }
.t-econ  { background: rgba(79,209,165,.14); color: var(--econ); }
.t-bus   { background: rgba(91,141,239,.14); color: var(--blue); }
.t-engl  { background: rgba(245,142,168,.14); color: var(--engl); }

/* ---- section headings ---- */
h2.sec { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; margin: 0 0 10px; text-align: center; }
/* The now-line under every section heading — the icon's amber thread + node. */
h2.sec::after {
  content: ""; display: block; width: 76px; height: 10px; margin: 14px auto 2px;
  background:
    radial-gradient(circle 5px at 5px 50%, var(--accent) 97%, transparent),
    linear-gradient(var(--accent), var(--accent)) 16px 50% / 60px 3px no-repeat;
}
p.sec-sub { text-align: center; color: var(--dim); max-width: 60ch; margin: 22px auto 48px; }

/* ---- pricing ---- */
section.pricing { padding: 96px 24px 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 860px; margin: 0 auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px;
  display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--blue); background: var(--panel-2); }
.plan h3 { margin: 0; font-size: 21px; }
.plan .price { font-size: 40px; font-weight: 800; margin: 12px 0 2px; letter-spacing: -0.02em; }
.plan .price span { font-size: 16px; font-weight: 500; color: var(--dim); }
/* The number is the news; the currency code steps back (Shannon 2026-08-27). */
.plan .price .cur { font-size: 17px; font-weight: 650; letter-spacing: 0; }
.plan p.for { color: var(--dim); font-size: 14.5px; margin: 0 0 18px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--text); font-size: 15.5px; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--blue); font-weight: 700; }
.plan li.dim { color: var(--dim); }
.plan .btn { margin-top: auto; text-align: center; }

/* ---- the buy page's first question: which way in ----
   Two cards, same shape as the pricing plans, holding a radio each. Picking
   one reveals the rest of the form. */
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 24px; }
@media (max-width: 560px) { .choose { grid-template-columns: 1fr; } }
.choice {
  position: relative; display: block; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 20px 18px;
}
.choice:hover { border-color: var(--dim); }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--panel-2); }
.choice:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.choice .ch-name { display: block; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.choice .ch-price { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 8px; }
.choice .ch-price span { font-size: 14px; font-weight: 500; color: var(--dim); }
.choice .ch-note { display: block; color: var(--dim); font-size: 14px; line-height: 1.55; }

/* ---- FAQ ---- */
/* Rhythm shorthands must carry the wrap's 24px sides: a bare 0 in the
   middle once put the FAQ flush against a phone's edges. */
section.faq { padding: 96px 24px; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq-list summary {
  cursor: pointer; font-weight: 650; font-size: 17px; padding: 14px 0; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--dim); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--dim); margin: 0 0 16px; font-size: 15.5px; }
/* Bullets wrap a little earlier than the paragraphs, so a long line fills its
   second line instead of stranding a word or two. */
.faq-list details ul { padding-right: 56px; }
.faq-list details li { font-size: 18px; margin-bottom: 6px; }

/* ---- article pages (legal, ethical AI) ---- */
main.article { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
main.article h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.02em; margin: 0 0 6px; }
main.article p.updated { color: var(--dim); font-size: 14px; margin: 0 0 36px; }
main.article h2 { font-size: 22px; margin: 38px 0 10px; letter-spacing: -0.01em; }
main.article p, main.article li { color: #cfcfcf; font-size: 16.5px; }
main.article ul { padding-left: 22px; }
main.article .callout {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 16px 20px; margin: 22px 0;
}
main.article .callout p { margin: 0; }

/* ---- footer ---- */
footer.site { border-top: 1px solid var(--line); padding: 40px 0 56px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 26px; align-items: baseline; }
footer.site .brand { font-size: 16px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer.site a { color: var(--dim); font-size: 14px; }
footer.site a:hover { color: var(--text); }
/* #8f8f8f, not dimmer: 13px legal text needs WCAG AA's 4.5:1 against the page
   ground (the old #6f6f6f sat at 3.6). Still clearly quieter than --dim. */
footer.site p.legal { width: 100%; color: #8f8f8f; font-size: 13px; margin: 10px 0 0; }

/* ---- macOS pop-up mockups (getting-started.html) ----
   Recreations of the real dialogs, not screenshots: retina-crisp, exact
   wording, and restylable when macOS changes. pointer-events off — they're
   illustrations, not controls. */
.macdialog {
  background: linear-gradient(#2e2e30, #29292b);
  border: 1px solid #414144;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .4);
  margin: 24px auto 14px;
  padding: 20px;
  color: #e8e8e8;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  pointer-events: none;
  user-select: none;
}
.macdialog.center { max-width: 290px; text-align: center; }
.macdialog .mi { font-size: 42px; line-height: 1; margin-bottom: 10px; }
.macdialog .mi svg { display: inline-block; }
.macdialog h4 { margin: 0 0 6px; font-size: 13.5px; font-weight: 700; color: #fff; }
main.article .macdialog p { margin: 0 0 14px; color: #b7b7bc; font-size: 12px; line-height: 1.4; }
.macdialog .btns { display: flex; gap: 9px; justify-content: flex-end; }
.macdialog.center .btns { justify-content: center; }
.macdialog .btns span {
  background: #4d4d52; color: #fff; border-radius: 7px;
  padding: 5px 14px; font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.macdialog.center .btns span { flex: 1; text-align: center; }
.macdialog.wide { max-width: 460px; }
.macdialog.wide .head { display: flex; gap: 16px; align-items: flex-start; text-align: left; margin-bottom: 12px; }
.macdialog.wide .mi { margin: 0; font-size: 38px; }
.macdialog .pwrow { display: flex; gap: 8px; align-items: center; margin: 0 0 16px; }
.macdialog .pwrow label { color: #cfcfd4; font-size: 12.5px; }
.macdialog .pwrow .field {
  flex: 1; height: 24px; border-radius: 6px;
  background: #1d1d1f; border: 1px solid #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, .28);
}
.popup-note { max-width: 640px; margin: 0 auto 34px; }
.popup-note em.folder { color: var(--blue); }
.popup-note .popup-aside { display: block; margin-top: 14px; }
.popup-note strong { color: var(--accent); }

/* The maker line at the foot of the buy page: who made it, and where. */
p.maker { text-align: center; color: var(--dim); font-size: 13.5px; margin: 40px auto 0; line-height: 1.8; }
