/* Sortwell design system. Calm, trustworthy, premium-but-warm.
   One accent (evergreen), warm-neutral base, Geist type, light theme.
   Hand-crafted CSS (no framework) so nothing reads as a template default. */

:root {
  /* neutrals (warm-cool balanced, never pure black/white) */
  --bg:        #f7f7f4;
  --surface:   #ffffff;
  --surface-2: #fbfbf9;
  --ink:       #18181b;
  --ink-2:     #3f3f46;
  --ink-soft:  #6b6b73;
  --line:      #e7e6e1;
  --line-2:    #efeee9;

  /* single accent: deep evergreen + tints */
  --accent:      #14715c;
  --accent-deep: #0f5546;
  --accent-soft: #e8f1ed;
  --accent-ink:  #0c4a3c;

  /* supporting tints for category chips in mockups (neutral, not new accents) */
  --amber:  #97601f;
  --amber-soft: #f6efe4;
  --slate-soft: #eef0f2;
  --rose-soft:  #f3ecec;

  --radius:   14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(24,24,27,.05), 0 1px 1px rgba(24,24,27,.03);
  --shadow:    0 10px 30px -12px rgba(20,40,35,.18), 0 2px 6px rgba(24,24,27,.05);
  --shadow-lg: 0 30px 70px -24px rgba(15,60,48,.30), 0 6px 18px rgba(24,24,27,.06);

  --maxw: 1180px;
  --ease: cubic-bezier(.16,1,.3,1);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

/* accessibility: visible keyboard focus + skip link */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 8px;
  font: 600 14px/1 var(--font);
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 8px; }
.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;
}
/* decorative mockup label (was an out-of-order <h4>) */
.mock-h { font: 600 15px/1.05 var(--font); letter-spacing: -.02em; color: var(--ink); }

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

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

h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.05; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* layout */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 760px){ .section { padding: 64px 0; } }

.eyebrow {
  font: 600 12px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; display: inline-block;
}
.lead { color: var(--ink-soft); font-size: 18px; line-height: 1.6; max-width: 62ch; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 15px/1 var(--font); padding: 13px 20px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(15,85,70,.7); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #d6d5cf; transform: translateY(-1px); }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn svg { width: 17px; height: 17px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,247,244,.82); backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .signin { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 860px){ .nav-links, .nav-cta .signin { display: none; } }

/* brand mark */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.brand-mark svg { width: 17px; height: 17px; }

/* hero */
.hero { padding-top: 64px; padding-bottom: 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 1.12fr; gap: 56px; align-items: center; }
@media (max-width: 960px){ .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 600; letter-spacing: -.035em; }
.h1 .soft { color: var(--ink-soft); }
.hero p.lead { margin-top: 22px; font-size: 19px; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }

/* section headers */
.s-head { max-width: 60ch; }
.s-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; letter-spacing: -.03em; }
.s-head p { margin-top: 16px; color: var(--ink-soft); font-size: 18px; line-height: 1.6; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- app mockup chrome (real UI, not fake screenshots) ---------- */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r{background:#e6a3a0}.dot.y{background:#e6cf9a}.dot.g{background:#a8d2bf}
.mock-url { margin-left: 10px; font: 500 12px/1 var(--mono); color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 999px; }

.app { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; }
@media (max-width: 560px){ .app { grid-template-columns: 1fr; } .app .side { display: none; } }
.side { border-right: 1px solid var(--line-2); padding: 18px 14px; background: var(--surface-2); }
.side .acct { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; }
.side .av { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font: 600 11px/1 var(--font); }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.nav-item.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav-item .ic { width: 16px; height: 16px; opacity: .8; }
.side .label { font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 8px 6px; }

.app-main { padding: 22px; }
.app-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.app-h h4 { font-size: 17px; }
.pill { font: 600 11px/1 var(--mono); letter-spacing: .04em; padding: 6px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.stat { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; }
.stat .n { font: 600 24px/1 var(--font); letter-spacing: -.02em; }
.stat .k { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }

.mail { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 11px; margin-top: 8px; background: var(--surface); }
.mail .sq { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font: 600 12px/1 var(--font); flex: none; }
.mail .who { font-size: 13.5px; font-weight: 600; }
.mail .sub { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail .meta { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.tag { font: 600 11px/1 var(--font); padding: 5px 9px; border-radius: 7px; display: inline-flex; align-items: center; gap: 5px; }
.tag.green{background:var(--accent-soft);color:var(--accent-ink)}
.tag.amber{background:var(--amber-soft);color:var(--amber)}
.tag.slate{background:var(--slate-soft);color:#475569}
.tag.rose{background:var(--rose-soft);color:#9a5b5b}
.tag .arrow{opacity:.6}
.sq.green{background:var(--accent-soft);color:var(--accent-ink)}
.sq.amber{background:var(--amber-soft);color:var(--amber)}
.sq.slate{background:var(--slate-soft);color:#475569}
.sq.rose{background:var(--rose-soft);color:#9a5b5b}

/* trust band */
.trust { background: var(--ink); color: #fff; border-radius: 28px; padding: 56px; }
.trust h2 { color: #fff; font-size: clamp(26px,3.4vw,40px); }
.trust .grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 36px; }
@media (max-width: 820px){ .trust { padding: 36px 26px; } .trust .grid3 { grid-template-columns: 1fr; } }
.trust .t-item { padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.03); }
.trust .t-item .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(168,210,191,.16); color: #a8d2bf; margin-bottom: 14px; }
.trust .t-item h3 { color: #fff; font-size: 17px; }
.trust .t-item p { color: rgba(255,255,255,.62); font-size: 14.5px; margin-top: 8px; line-height: 1.55; }
.trust .ic svg { width: 18px; height: 18px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: step; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr; } }
.step .num { font: 600 13px/1 var(--mono); color: var(--accent); border: 1px solid var(--accent-soft); background: var(--accent-soft); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 19px; }
.step p { margin-top: 9px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* learning loop feature (split) */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; align-items: center; }
.split.rev { grid-template-columns: 1.1fr 1fr; }
@media (max-width: 900px){ .split, .split.rev { grid-template-columns: 1fr; gap: 32px; } }

/* learn card */
.learn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; }
.learn .row { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 12px; border: 1px solid var(--line-2); }
.learn .arrow-down { display: grid; place-items: center; padding: 8px 0; color: var(--ink-soft); }
.learn .arrow-down svg { width: 20px; height: 20px; }
.learn .note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 13px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; line-height: 1.5; }
.learn .note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.bento .cell { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; box-shadow: var(--shadow-sm); }
.bento .cell h3 { font-size: 18px; }
.bento .cell p { margin-top: 9px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.bento .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px; }
.bento .ic svg { width: 19px; height: 19px; }
.col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; } .col-4 { grid-column: span 4; }
.cell.tint { background: var(--accent-soft); border-color: #d6e6df; }
.cell.tint h3, .cell.tint .ic { color: var(--accent-ink); }
.cell.tint .ic { background: rgba(20,113,92,.13); }
.cell.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.cell.dark h3 { color:#fff; } .cell.dark p { color: rgba(255,255,255,.6); }
.cell.dark .ic { background: rgba(168,210,191,.16); color:#a8d2bf; }
@media (max-width: 820px){ .bento { grid-template-columns: 1fr; } .col-3,.col-2,.col-4 { grid-column: span 1; } }

/* mini receipt list inside a bento cell */
.mini { margin-top: 14px; display: grid; gap: 7px; }
.mini .r { display:flex; align-items:center; gap:9px; font-size:12.5px; background: var(--surface-2); border:1px solid var(--line-2); padding:8px 10px; border-radius:9px; }
.mini .r .d { font: 600 11px/1 var(--mono); color: var(--ink-soft); margin-left: auto; }
.cell.dark .mini .r { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color:#fff; }
.cell.dark .mini .r .d { color: rgba(255,255,255,.5); }

/* security */
.sec { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px){ .sec { grid-template-columns: 1fr; gap: 30px; } }
.sec ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.sec li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.sec li svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 2px; }
.sec li b { color: var(--ink); font-weight: 600; }
.sec-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); padding: 28px; }
.sec-card .row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.sec-card .row:last-child { border-bottom: 0; }
.sec-card .row .k { font-size: 14.5px; color: var(--ink-2); display:flex; align-items:center; gap:10px; }
.sec-card .row .k svg{ width:18px;height:18px;color:var(--accent); }
.sec-card .row .v { font: 600 12px/1 var(--mono); color: var(--accent-ink); background: var(--accent-soft); padding: 6px 10px; border-radius: 999px; }

/* pricing */
.toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 24px auto 0; }
.toggle button { border: 0; background: transparent; font: 500 14px/1 var(--font); padding: 9px 16px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.toggle button.on { background: var(--ink); color: #fff; }
.toggle .save { font: 600 11px/1 var(--mono); color: var(--accent); }

.prices { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 40px; align-items: start; }
@media (max-width: 900px){ .prices { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.price { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 28px; box-shadow: var(--shadow-sm); }
.price.feat { border-color: var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.price.feat .badge { position: absolute; top: -12px; left: 28px; background: var(--accent); color:#fff; font: 600 11px/1 var(--mono); letter-spacing:.06em; padding: 6px 12px; border-radius: 999px; }
.price .name { font-size: 16px; font-weight: 600; }
.price .amt { font-size: 42px; font-weight: 600; letter-spacing: -.03em; margin-top: 14px; }
.price .amt span { font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.price .desc { color: var(--ink-soft); font-size: 14px; margin-top: 8px; min-height: 40px; }
.price ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 11px; }
.price li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.price li svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 2px; }
.price .btn { width: 100%; justify-content: center; }

/* faq */
.faq { max-width: 760px; margin: 40px auto 0; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 22px 0; font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pl { width: 20px; height: 20px; flex: none; transition: transform .2s var(--ease); color: var(--accent); }
.qa[open] summary .pl { transform: rotate(45deg); }
.qa p { padding: 0 0 22px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; max-width: 64ch; }

/* final cta */
.final { text-align: center; background: linear-gradient(160deg, var(--accent), var(--accent-deep)); color: #fff; border-radius: 28px; padding: 72px 32px; }
.final h2 { color: #fff; font-size: clamp(30px,4vw,46px); }
.final p { color: rgba(255,255,255,.8); font-size: 18px; margin: 16px auto 0; max-width: 52ch; }
.final .btn-primary { background: #fff; color: var(--accent-deep); margin-top: 30px; }
.final .btn-primary:hover { background: #f3f3f0; }
.final .sub { color: rgba(255,255,255,.7); font-size: 13.5px; margin-top: 16px; }

/* footer */
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 8px; }
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot .cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot h5 { font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.foot a { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.foot a:hover { color: var(--ink); }
.foot .fine { font-size: 13px; color: var(--ink-soft); margin-top: 16px; max-width: 38ch; }
.foot .note { font-size: 12px; color: var(--ink-soft); margin-top: 40px; border-top: 1px solid var(--line-2); padding-top: 20px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* pitch-specific */
.tag-line { display:flex; gap:8px; flex-wrap:wrap; margin-top: 18px; }
.chip { font: 600 12px/1 var(--mono); letter-spacing: .03em; padding: 8px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.chip.on { background: var(--accent-soft); color: var(--accent-ink); border-color:#d6e6df; }
.cards2 { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.cards2.c3 { grid-template-columns: repeat(3,1fr); }
@media (max-width:820px){ .cards2, .cards2.c3 { grid-template-columns:1fr; } }
.card { border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); padding:24px; box-shadow:var(--shadow-sm); }
.card h3 { font-size:18px; } .card h4 { font-size: 15px; margin-bottom: 6px; }
.card p { color:var(--ink-soft); font-size:14.5px; line-height:1.6; margin-top:8px; }
.kpi { font: 600 30px/1 var(--font); letter-spacing:-.02em; color: var(--accent-ink); }
.kpi-k { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.tbl { width:100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { text-align:left; padding: 13px 14px; border-bottom: 1px solid var(--line-2); }
.tbl th { font: 600 11px/1 var(--mono); letter-spacing:.08em; text-transform:uppercase; color:var(--ink-soft); }
.tbl tr:last-child td { border-bottom:0; }
.tbl .good { color: var(--accent-ink); font-weight:600; }
.timeline { display:grid; gap:14px; }
.tl { display:grid; grid-template-columns: 120px 1fr; gap:18px; padding:18px 0; border-bottom:1px solid var(--line-2); }
.tl .ph { font:600 13px/1 var(--mono); color:var(--accent); }
.tl h4 { font-size:16px; } .tl p { color:var(--ink-soft); font-size:14.5px; margin-top:6px; }
@media (max-width:680px){ .tl { grid-template-columns:1fr; gap:6px; } }
.toc { position: sticky; top: 84px; }
.banner { background: var(--accent-soft); border:1px solid #d6e6df; color: var(--accent-ink); border-radius: var(--radius); padding: 16px 18px; font-size: 14px; display:flex; gap:10px; align-items:flex-start; }
.banner svg { width:18px;height:18px;flex:none;margin-top:1px; }
