/* ============================================================
   Trizr — marketing / support site
   Everforest palette · native-macOS aesthetic
   ============================================================ */

/* ----- Theme tokens ----- */
:root {
  /* Everforest — Dark (default, matches the app screenshots) */
  --bg:        #272E33;
  --bg-2:      #2E383C;   /* panels / cards */
  --bg-elev:   #343F44;   /* lifted surfaces */
  --ink:       #D3C6AA;   /* primary text (warm) */
  --ink-2:     #9DA9A0;   /* secondary */
  --ink-3:     #7A8478;   /* muted / captions */
  --accent:    #A7C080;   /* sage — the app's action colour */
  --accent-ink:#20272B;   /* text on accent */
  --select:    #83C092;   /* teal — playhead / highlight */
  --red:       #E67E80;
  --yellow:    #DBBC7F;
  --line:      rgba(211, 198, 170, 0.11);
  --line-2:    rgba(211, 198, 170, 0.06);
  --card-sh:   0 18px 40px -18px rgba(0,0,0,.55), 0 4px 12px -6px rgba(0,0,0,.4);
  --glow:      0 10px 30px -8px rgba(167, 192, 128, .45);
  color-scheme: dark;
}

:root[data-theme="light"] {
  /* Everforest — Light */
  --bg:        #EFEBD4;
  --bg-2:      #FDF6E3;
  --bg-elev:   #F4F0D9;
  --ink:       #3A4A4D;
  --ink-2:     #5C6A72;
  --ink-3:     #939F91;
  --accent:    #8DA101;
  --accent-ink:#FDF6E3;
  --select:    #35A77C;
  --red:       #F85552;
  --yellow:    #DFA000;
  --line:      rgba(58, 74, 77, 0.12);
  --line-2:    rgba(58, 74, 77, 0.06);
  --card-sh:   0 16px 34px -18px rgba(60,70,55,.28), 0 3px 10px -6px rgba(60,70,55,.18);
  --glow:      0 10px 26px -8px rgba(141, 161, 1, .38);
  color-scheme: light;
}

/* Honour system preference when the user hasn't chosen */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg:#EFEBD4; --bg-2:#FDF6E3; --bg-elev:#F4F0D9;
    --ink:#3A4A4D; --ink-2:#5C6A72; --ink-3:#939F91;
    --accent:#8DA101; --accent-ink:#FDF6E3; --select:#35A77C;
    --red:#F85552; --yellow:#DFA000;
    --line:rgba(58,74,77,.12); --line-2:rgba(58,74,77,.06);
    --card-sh:0 16px 34px -18px rgba(60,70,55,.28),0 3px 10px -6px rgba(60,70,55,.18);
    --glow:0 10px 26px -8px rgba(141,161,1,.38);
    color-scheme: light;
  }
}

/* ----- Type ----- */
:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "JetBrains Mono", Menlo,
          "Roboto Mono", monospace;
  --wide: 1120px;
}

/* ----- Reset-ish ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmospheric background — faint sage aurora + fine grain, fixed */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 45% at 78% -8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(50% 40% at 8% 4%,  color-mix(in srgb, var(--select) 10%, transparent), transparent 70%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: color-mix(in srgb, var(--accent) 32%, transparent); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 600;
}
.skip:focus { left: 12px; }

/* ----- Layout ----- */
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-2);
}
.nav {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.brand span { font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--line-2); }
.nav-links a.active { color: var(--ink); }

.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-2); color: var(--ink-2); cursor: pointer;
  transition: color .15s ease, border-color .15s ease, transform .1s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle .moon { display: none; }
.theme-toggle .sun  { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
:root[data-theme="light"] .theme-toggle .sun  { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .moon { display: block; }
  :root:not([data-theme]) .theme-toggle .sun  { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: transform .1s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.975); }
.btn-accent {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--glow);
}
.btn-accent:hover { box-shadow: 0 14px 34px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-ghost {
  background: var(--bg-2); color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn svg { width: 18px; height: 18px; }

/* "Coming soon" store button — looks premium but clearly not clickable-live */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px 13px 18px; border-radius: 13px;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--glow); font-weight: 600;
}
.store-btn .logo { width: 26px; height: 26px; }
.store-btn .l1 { display:block; font-size: 11px; opacity: .8; font-weight: 600; letter-spacing:.02em; }
.store-btn .l2 { display:block; font-size: 16px; line-height: 1.15; margin-top: 1px; letter-spacing: -.01em; }
.store-note {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 84px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1.28fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -.028em;
  margin: 20px 0 0; font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead {
  margin: 22px 0 0; font-size: clamp(16.5px, 1.7vw, 19px); color: var(--ink-2);
  max-width: 46ch;
}
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 34px; }
.hero-meta {
  margin-top: 26px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3);
  letter-spacing: .02em; display: flex; gap: 10px; flex-wrap: wrap;
}
.hero-meta .dot { color: var(--accent); }

/* macOS window frame around the hero screenshot */
.window {
  border-radius: 14px; overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: var(--card-sh);
}
.window .titlebar {
  height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: color-mix(in srgb, var(--bg-elev) 80%, var(--bg));
  border-bottom: 1px solid var(--line-2);
}
.window .titlebar .dots { display: flex; gap: 7px; }
.window .titlebar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.window .titlebar .r { background: #ED6A5E; }
.window .titlebar .y { background: #F4BE4F; }
.window .titlebar .g { background: #61C554; }
.window .titlebar .name {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-3);
  margin: 0 auto; transform: translateX(-24px);
}
.window img { width: 100%; height: auto; display: block; aspect-ratio: 1760 / 1100; object-fit: cover; }

.hero-figure { position: relative; }
.hero-figure .spec-badge {
  position: absolute; right: -14px; bottom: -18px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px; box-shadow: var(--card-sh);
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  display: flex; align-items: center; gap: 10px;
}
.hero-figure .spec-badge b { color: var(--accent); font-weight: 600; }

/* ============================================================
   Section scaffolding
   ============================================================ */
section { position: relative; }
.section-head { margin-bottom: 40px; max-width: 640px; }
.section-head h2 {
  font-size: clamp(27px, 3.4vw, 38px); letter-spacing: -.02em; line-height: 1.08;
  margin: 16px 0 0; font-weight: 700;
}
.section-head p { color: var(--ink-2); margin: 14px 0 0; font-size: 17px; }

.pad { padding: 76px 0; }
.divider { height: 1px; background: var(--line-2); }

/* ruler tick divider — echoes the timeline */
.ruler {
  height: 26px; width: 100%;
  background-image: repeating-linear-gradient(90deg,
    var(--line) 0 1px, transparent 1px 28px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  opacity: .8;
}

/* ============================================================
   Features grid
   ============================================================ */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 24px 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--card-sh);
}
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent); margin-bottom: 18px;
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14.8px; }
.feature .tag {
  display: inline-block; margin-top: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--ink-3); text-transform: uppercase;
}

/* ============================================================
   Showcase (alternating rows)
   ============================================================ */
.shot-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
  padding: 44px 0;
}
.shot-row.rev .shot-copy { order: 2; }
.shot-row.rev .shot-media { order: 1; }
.shot-copy .num {
  font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .1em;
}
.shot-copy h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; margin: 12px 0 0; }
.shot-copy p { color: var(--ink-2); margin: 14px 0 0; font-size: 16.5px; }
.shot-copy .cap {
  margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3);
}

/* ============================================================
   Privacy band
   ============================================================ */
.band {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--bg-2)), var(--bg-2));
  border: 1px solid var(--line); border-radius: 22px;
  padding: 52px 48px; text-align: center;
}
.band .lock {
  width: 54px; height: 54px; border-radius: 15px; margin: 0 auto 22px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.band h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.02em; margin: 0; }
.band p { color: var(--ink-2); max-width: 60ch; margin: 16px auto 0; font-size: 17px; }
.band .chips {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px;
}
.chip {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); display: inline-flex; align-items: center; gap: 8px;
}
.chip svg { width: 14px; height: 14px; color: var(--select); }

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  text-align: center; padding: 88px 0;
}
.cta h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.025em; margin: 0 0 10px; }
.cta p { color: var(--ink-2); font-size: 18px; margin: 0 0 30px; }
.cta .row { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line-2); padding: 56px 0 40px; margin-top: 8px;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--ink-3); font-size: 14px; max-width: 34ch; margin: 0; }
.foot-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 14px; font-weight: 600;
}
.foot-col a { display: block; color: var(--ink-2); font-size: 14.5px; padding: 5px 0; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
}

/* ============================================================
   Sub-page (support / privacy) shared
   ============================================================ */
.page-hero { padding: 72px 0 24px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.03em; margin: 18px 0 0; }
.page-hero p { color: var(--ink-2); font-size: 18px; margin: 16px 0 0; max-width: 58ch; }

.contact-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 34px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; box-shadow: var(--card-sh);
}
.contact-card .l .k {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.contact-card .l a.email {
  font-size: clamp(20px, 3vw, 28px); font-weight: 650; letter-spacing: -.02em; color: var(--ink);
  display: inline-block; margin-top: 6px;
}
.contact-card .l a.email:hover { color: var(--accent); }
.contact-card .l .sub { color: var(--ink-3); font-size: 14px; margin-top: 6px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: border-color .2s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 22px;
  font-weight: 600; font-size: 16.5px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: none; width: 22px; height: 22px; position: relative; color: var(--accent);
  transition: transform .25s ease;
}
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
}
.faq summary .plus::before { left: 3px; right: 3px; top: 10px; height: 2px; }
.faq summary .plus::after  { top: 3px; bottom: 3px; left: 10px; width: 2px; }
.faq details[open] summary .plus { transform: rotate(135deg); }
.faq .a { padding: 0 22px 22px; color: var(--ink-2); font-size: 15.5px; }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin-bottom: 0; }
.faq .a code {
  font-family: var(--mono); font-size: 13px; background: var(--bg); padding: 2px 6px;
  border-radius: 5px; color: var(--select);
}

/* Legal / prose */
.prose { max-width: 760px; }
.prose .meta {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em;
  margin-bottom: 8px;
}
.prose h2 {
  font-size: 21px; letter-spacing: -.01em; margin: 40px 0 12px;
  padding-top: 6px;
}
.prose h2 .n { font-family: var(--mono); color: var(--accent); font-size: 15px; margin-right: 10px; }
.prose p { color: var(--ink-2); margin: 0 0 14px; }
.prose ul { color: var(--ink-2); margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a.link { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.prose strong { color: var(--ink); }

/* ============================================================
   Load reveal
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .d1 { animation-delay: .05s; } .d2 { animation-delay: .13s; }
  .d3 { animation-delay: .21s; } .d4 { animation-delay: .29s; } .d5 { animation-delay: .37s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero { padding: 56px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure .spec-badge { right: 10px; }
  .features { grid-template-columns: 1fr 1fr; }
  .shot-row, .shot-row.rev { grid-template-columns: 1fr; gap: 26px; }
  .shot-row.rev .shot-copy { order: 1; } .shot-row.rev .shot-media { order: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 9px; font-size: 13.5px; }
  .features { grid-template-columns: 1fr; }
  .band { padding: 40px 24px; }
  .contact-card { padding: 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
