/* StudyFlow — site styles. No build step, no external requests, no webfonts. */

:root {
  --ink:        #16161d;
  --ink-2:      #3f3f4a;
  --muted:      #6b6b78;
  --faint:      #9a9aa6;
  --line:       #e6e4ee;
  --line-2:     #f0eef7;
  --paper:      #ffffff;
  --paper-2:    #faf9fd;
  --p:          #5b21b6;
  --p-bright:   #7c3aed;
  --p-tint:     #f4f1fe;
  --ok:         #0f7a52;
  --warn-bg:    #fff8ed;
  --warn-line:  #f5d9ae;
  --warn-ink:   #9a5b13;
  --danger:     #c02626;
  --wrap:       1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font: 17px/1.7 ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--p); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
::selection { background: #ddd0ff; color: var(--ink); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -0.021em; line-height: 1.15; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.tight { max-width: 700px; }

/* ─────────────────────────────── header ─────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
header.site .bar { display: flex; align-items: center; gap: 30px; height: 68px; }

.logo-link { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.logo-link:hover { text-decoration: none; }
.mark {
  /* The real logo mark. No gradient plate behind it — the artwork already
     carries its own weight, and a coloured square would fight the purple. */
  width: 34px; height: 34px; flex: none;
  object-fit: contain;
  display: block;
}

nav.main { display: flex; align-items: center; gap: 28px; margin-left: auto; }
nav.main a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
nav.main a:hover { color: var(--p); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle span + span { margin-top: 4px; }

@media (max-width: 860px) {
  nav.main {
    display: none; position: absolute; inset: 68px 0 auto 0; flex-direction: column;
    align-items: stretch; gap: 0; padding: 6px 24px 20px;
    background: #fff; border-bottom: 1px solid var(--line);
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 13px 0; border-bottom: 1px solid var(--line-2); }
  nav.main .btn { margin-top: 14px; }
  .nav-toggle { display: block; }
}

/* ─────────────────────────────── buttons ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; letter-spacing: -0.01em;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.btn-primary:hover { background: #000; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-violet { background: var(--p); color: #fff; }
.btn-violet:hover { background: #4c1d95; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ──────────────────────────────── hero ──────────────────────────────── */
.hero { padding: 74px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 60px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--p); letter-spacing: -0.01em;
  background: var(--p-tint); border: 1px solid #e6ddfd;
  padding: 5px 13px; border-radius: 30px; margin-bottom: 24px;
}
.kicker b { font-weight: 700; }

.hero h1 { font-size: clamp(38px, 5.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--p); }
.hero .lede { font-size: 19px; color: var(--muted); margin: 22px 0 32px; max-width: 30em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 20px; font-size: 14px; color: var(--faint); }

/* phone mock — drawn, not a stock image */
.phone {
  width: 292px; margin-inline: auto; border-radius: 34px; padding: 9px;
  background: linear-gradient(160deg, #24243a, #101018);
  box-shadow: 0 30px 60px -20px rgba(24,16,54,.5), 0 0 0 1px rgba(0,0,0,.06);
}
.phone-screen { background: #fff; border-radius: 26px; overflow: hidden; }
.phone-top {
  display: flex; align-items: center; gap: 8px; padding: 13px 15px;
  border-bottom: 1px solid var(--line-2);
}
.phone-top .dot { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(145deg, var(--p-bright), var(--p)); }
.phone-top b { font-size: 13.5px; color: var(--ink); }
.phone-top .lvl {
  margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--p);
  background: var(--p-tint); padding: 3px 8px; border-radius: 20px;
}
.phone-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 330px; }
.bub { max-width: 86%; padding: 10px 13px; border-radius: 15px; font-size: 13.5px; line-height: 1.55; }
.bub.me { align-self: flex-end; background: var(--p); color: #fff; border-bottom-right-radius: 5px; }
.bub.ai { align-self: flex-start; background: #f4f3f8; color: var(--ink); border-bottom-left-radius: 5px; }
.bub.ai b { color: var(--ink); }
.phone-input {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--line-2); padding: 11px 13px 13px;
}
.phone-input i {
  flex: 1; height: 34px; border-radius: 18px; background: #f4f3f8;
  font-style: normal; font-size: 12.5px; color: var(--faint);
  display: flex; align-items: center; padding: 0 14px;
}
.phone-input span {
  width: 34px; height: 34px; border-radius: 50%; background: var(--p); flex: none;
  display: grid; place-items: center; color: #fff; font-size: 15px;
}

/* ─────────────────────────────── sections ───────────────────────────── */
section { padding: 84px 0; }
section.alt { background: var(--paper-2); border-block: 1px solid var(--line-2); }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 14px;
}
h2.sec { font-size: clamp(28px, 3.7vw, 40px); letter-spacing: -0.032em; max-width: 16em; }
p.sec-sub { font-size: 18px; color: var(--muted); margin-top: 16px; max-width: 34em; }

/* two-column alternating feature rows — deliberately not a card grid */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.row2 + .row2 { margin-top: 78px; }
.row2.flip > *:first-child { order: 2; }
@media (max-width: 900px) {
  .row2 { grid-template-columns: 1fr; gap: 30px; }
  .row2.flip > *:first-child { order: 0; }
}
.row2 h3 { font-size: 25px; letter-spacing: -0.028em; margin-bottom: 12px; }
.row2 p { color: var(--muted); font-size: 16.5px; }
.row2 .num {
  font-size: 12.5px; font-weight: 700; color: var(--p);
  letter-spacing: .08em; margin-bottom: 10px;
}

/* small UI vignettes used beside the copy */
.vig {
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  padding: 18px; box-shadow: 0 14px 34px -22px rgba(30,20,70,.4);
}
.vig-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.vig-head .pip { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.vig-head b { font-size: 12.5px; color: var(--faint); font-weight: 600; margin-left: 4px; }

.persona { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.persona span {
  font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--muted);
}
.persona span.on { background: var(--p); border-color: var(--p); color: #fff; }

.q-opt {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 14px; margin-bottom: 8px; color: var(--ink);
}
.q-opt i {
  width: 22px; height: 22px; border-radius: 50%; background: #f1eff7; flex: none;
  display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted);
}
.q-opt.right { border-color: var(--ok); background: #f0fbf6; }
.q-opt.right i { background: var(--ok); color: #fff; }
.q-opt.wrong { border-color: #f0c0c0; background: #fdf4f4; }
.q-opt.wrong i { background: var(--danger); color: #fff; }
.q-why { font-size: 13px; color: var(--muted); background: var(--p-tint); padding: 11px 13px; border-radius: 10px; }

.streak-days { display: flex; gap: 6px; margin-bottom: 12px; }
.streak-days b {
  flex: 1; height: 38px; border-radius: 9px; background: #f1eff7; display: grid; place-items: center;
  font-size: 11px; color: var(--faint); font-weight: 600;
}
.streak-days b.hit { background: var(--p); color: #fff; }
.streak-days b.grace { background: var(--warn-bg); border: 1px dashed var(--warn-line); color: var(--warn-ink); }

/* honest limits list */
.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 40px; }
.limits div { background: #fff; padding: 24px; }
.limits h4 { font-size: 16px; margin-bottom: 7px; }
.limits p { font-size: 15px; color: var(--muted); }

/* ─────────────────────────────── pricing ────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 44px; align-items: start; }
.tier {
  border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; background: #fff;
  position: relative;
}
.tier.featured { border-color: var(--p); box-shadow: 0 20px 50px -28px rgba(91,33,182,.6); }
.tier .flag {
  position: absolute; top: -11px; left: 26px; background: var(--p); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 20px;
}
.tier h3 { font-size: 19px; margin-bottom: 4px; }
.tier .tag-line { font-size: 14.5px; color: var(--muted); min-height: 44px; }
.tier .amount { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); margin: 14px 0 2px; }
.tier .amount small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier ul { list-style: none; margin: 22px 0; }
.tier li { display: flex; gap: 10px; font-size: 15px; padding: 7px 0; color: var(--ink-2); }
.tier li::before { content: '✓'; color: var(--ok); font-weight: 700; flex: none; }
.pricing-note { margin-top: 26px; font-size: 14.5px; color: var(--faint); }

/* ─────────────────────────────── quote / note ───────────────────────── */
.note {
  border-left: 3px solid var(--p); padding: 4px 0 4px 26px; margin: 40px 0;
  font-size: 19px; line-height: 1.65; color: var(--ink); max-width: 30em;
}
.sig { margin-top: 18px; font-size: 14.5px; color: var(--faint); }

/* ─────────────────────────────── article ────────────────────────────── */
article.doc { padding: 60px 0 90px; }
article.doc h1 { font-size: clamp(32px, 4.6vw, 46px); letter-spacing: -0.035em; margin-bottom: 12px; }
article.doc .meta { color: var(--faint); font-size: 15px; margin-bottom: 40px; }
article.doc h2 { font-size: 24px; margin: 44px 0 14px; letter-spacing: -0.028em; }
article.doc h3 { font-size: 18px; margin: 30px 0 10px; }
article.doc p { margin-bottom: 17px; }
article.doc ul, article.doc ol { margin: 0 0 18px 24px; }
article.doc li { margin-bottom: 9px; }
article.doc code { background: var(--p-tint); color: var(--p); padding: 2px 7px; border-radius: 5px; font-size: 15px; }
article.doc table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 15.5px; }
article.doc th { text-align: left; padding: 11px 14px; background: var(--paper-2); border-bottom: 2px solid var(--line); font-size: 14px; color: var(--ink); }
article.doc td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
article.doc blockquote { border-left: 3px solid var(--p); background: var(--p-tint); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 22px 0; }

.callout {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: 12px; padding: 17px 19px; margin: 24px 0; font-size: 15.5px; line-height: 1.65;
}
.callout strong { display: block; color: var(--warn-ink); margin-bottom: 5px; }
.callout.ok { background: #f0fbf6; border-color: #b9e6d0; }
.callout.ok strong { color: var(--ok); }
.callout.bad { background: #fdf4f4; border-color: #f0c0c0; }
.callout.bad strong { color: var(--danger); }

/* ─────────────────────────────── forms ──────────────────────────────── */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; max-width: 470px; margin-inline: auto; }
.field { margin-bottom: 18px; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid #ece4fe; border-color: var(--p); }
.hint { font-size: 13.5px; color: var(--faint); margin-top: 7px; line-height: 1.5; }

/* ─────────────────────────────── blog ──────────────────────────────── */
.post-list { display: flex; flex-direction: column; }
.post-card {
  display: block; color: var(--ink); padding: 28px 0; border-bottom: 1px solid var(--line-2);
}
.post-card:hover { text-decoration: none; }
.post-card:hover h3 { color: var(--p); }
.post-card .cat { font-size: 12.5px; font-weight: 700; color: var(--p); letter-spacing: .05em; text-transform: uppercase; }
.post-card h3 { font-size: 24px; margin: 9px 0 8px; letter-spacing: -0.028em; }
.post-card p { color: var(--muted); font-size: 16.5px; }
.post-card .when { color: var(--faint); font-size: 14px; margin-top: 10px; }

/* ─────────────────────────────── faq ───────────────────────────────── */
details.faq { border-bottom: 1px solid var(--line-2); }
details.faq summary {
  cursor: pointer; padding: 19px 40px 19px 0; font-weight: 600; font-size: 17px;
  color: var(--ink); list-style: none; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 27px;
  width: 9px; height: 9px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg); transition: transform .18s;
}
details.faq[open] summary::after { transform: rotate(-135deg); top: 30px; }
details.faq .body { padding: 0 20px 22px 0; color: var(--muted); font-size: 16px; }

/* ─────────────────────────────── footer ─────────────────────────────── */
footer.site { border-top: 1px solid var(--line); padding: 60px 0 34px; background: var(--paper-2); }
footer.site .cols { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 780px) { footer.site .cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
footer.site h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 15px; font-weight: 600; }
footer.site a { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 11px; }
footer.site a:hover { color: var(--p); text-decoration: none; }
footer.site .about { color: var(--muted); font-size: 15px; max-width: 30ch; margin-top: 14px; }
footer.site .base {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--faint); font-size: 14px;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
