/* TutorLane — warm, playful, hand-made brand. Think friendly stationery shop:
   a pencil mascot, chunky 3D "sticker" buttons, soft blob shapes, hand-drawn
   doodles, and full-bleed warm color bands. Cozy, not corporate. */

:root {
  --paper: #fff8f0;
  --paper-deep: #f8eddf;
  --white: #fffdf9;
  --ink: #26314f;
  --ink-soft: #5b6887;
  --muted: #9b9589;
  --line: #ece1d2;

  --amber: #f8a81b;
  --amber-deep: #d4860c;      /* 3D button lip */
  --amber-soft: #fff0c9;
  --sage: #74b16a;
  --sage-deep: #5a9150;
  --sage-soft: #e6f3df;
  --coral: #ef7257;
  --coral-deep: #d4523a;
  --coral-soft: #ffe4dc;
  --sky: #6ba7d8;
  --sky-soft: #ddecf8;
  --grape-soft: #ece1f6;

  --shadow-pop: 7px 7px 0 rgba(38, 49, 79, 0.1);
  --shadow-soft: 0 16px 40px rgba(75, 53, 31, 0.1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;
}

* { 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;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(rgba(60, 50, 40, 0.035) 1.1px, transparent 1.1px),
    var(--paper);
  background-size: 8px 8px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0; color: var(--ink-soft); }
a { color: var(--coral-deep); text-decoration: none; font-weight: 700; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.86rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; border-radius: 10px; }

/* ---------- hand-drawn accents ---------- */
.hand { font-family: var(--font-hand); font-weight: 700; color: var(--coral-deep); font-size: 1.5rem; line-height: 1; }
.squiggle { display: inline-block; position: relative; }
.squiggle svg { position: absolute; left: -2%; bottom: -0.32em; width: 104%; height: 0.4em; color: var(--amber); }

/* ---------- 3D sticker buttons (Duolingo-style push) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: 0.6px;
  padding: 15px 28px; border: none; border-radius: 17px; cursor: pointer;
  transition: transform 0.08s var(--ease-bounce), box-shadow 0.08s ease, filter 0.1s;
  color: var(--ink);
}
.btn-amber { background: var(--amber); box-shadow: 0 6px 0 var(--amber-deep); }
.btn-amber:hover { filter: brightness(1.03); transform: translateY(-2px); box-shadow: 0 8px 0 var(--amber-deep); }
.btn-amber:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--amber-deep); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 6px 0 #161d31; }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #161d31; }
.btn-ink:active { transform: translateY(4px); box-shadow: 0 2px 0 #161d31; }
.btn-cream { background: var(--white); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.btn-cream:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn-cream:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 0.82rem; border-radius: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* Aliases so nav + subpages that use the older class names get the sticker look. */
.btn-primary { background: var(--amber); box-shadow: 0 6px 0 var(--amber-deep); }
.btn-primary:hover { filter: brightness(1.03); transform: translateY(-2px); box-shadow: 0 8px 0 var(--amber-deep); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--amber-deep); }
.btn-secondary { background: var(--white); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn-secondary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn-small { padding: 10px 18px; font-size: 0.82rem; border-radius: 13px; }

/* Centered heroes (subpages) should center their button row. */
.hero.center .cta-row { justify-content: center; }

/* ---------- badge / pill ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--amber-deep); background: var(--amber-soft); padding: 8px 16px; border-radius: 999px; border: 2px solid #f6dd9e; }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 2px; font-size: 0.82rem; font-weight: 700; color: var(--sage-deep); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 2px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.pencil { width: 36px; height: 36px; flex: none; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 700; }
.nav-links a:hover { color: var(--coral-deep); }
.nav-toggle, .nav-burger { display: none; }

/* ---------- sections & bands ---------- */
.section { position: relative; padding: 92px 0; }
.section-tight { position: relative; padding: 56px 0; }
.band { position: relative; padding: 104px 0; }
.band-paper { background: var(--paper); }
.band-deep { background: var(--paper-deep); }
.band-sage { background: var(--sage-soft); }
.band-amber { background: var(--amber-soft); }
.band-coral { background: var(--coral-soft); }
.band-sky { background: var(--sky-soft); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink p { color: #c7cde0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 14px; font-size: 1.1rem; }
.center { text-align: center; }

/* soft blobs */
.blob { position: absolute; border-radius: 48% 52% 60% 40% / 55% 48% 52% 45%; filter: blur(2px); opacity: 0.6; z-index: 0; pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 60px; overflow: hidden; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 36px; align-items: center; }
.hero h1 { margin: 20px 0; text-wrap: balance; }
.hero .lead { font-size: 1.28rem; max-width: 520px; font-weight: 600; color: var(--ink-soft); text-wrap: balance; }
/* centered subpage heroes: center + balance the headline and lead */
.hero.center h1 { text-wrap: balance; }
.hero.center .lead { max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 32px; }
.hero-note { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-soft); }
.hero-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 560px; }

/* phone + mascot composition */
.phone { position: relative; z-index: 2; width: 288px; max-width: 74vw; border: 11px solid #1b2033; border-radius: 46px; overflow: hidden; background: #000; box-shadow: var(--shadow-soft); transform: rotate(-3deg); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 1216; }
.mascot { width: 190px; line-height: 0; }
.hero-stage .mascot { position: absolute; z-index: 3; right: -4px; bottom: -10px; }
.float { animation: float 5.5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(-3deg); } }
.bob { animation: bob 3.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.wave { transform-box: fill-box; transform-origin: bottom left; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(16deg); } 50% { transform: rotate(-6deg); } 75% { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .float, .bob, .wave { animation: none; } }

/* doodles */
.doodle { position: absolute; z-index: 1; pointer-events: none; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--white); border: 2.5px solid var(--ink); border-radius: 24px; padding: 30px 26px; box-shadow: var(--shadow-pop); position: relative; }
.step-num { position: absolute; top: -20px; left: 24px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 14px; border: 2.5px solid var(--ink); background: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1; color: var(--ink); text-align: center; }
.step h3 { margin: 14px 0 8px; }
.step-emoji { font-size: 2rem; }

/* ---------- feature rows ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feat.flip .feat-media { order: 2; }
.feat + .feat { margin-top: 90px; }
.feat h2 { margin: 14px 0 16px; }
.feat ul { list-style: none; padding: 0; margin: 20px 0 0; }
.feat li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; font-weight: 600; color: var(--ink); }
.feat li .tick { flex: none; width: 26px; height: 26px; border-radius: 9px; background: var(--sage-soft); color: var(--sage-deep); display: grid; place-items: center; font-weight: 800; border: 2px solid #bfe0b2; }
.feat-media { display: flex; justify-content: center; position: relative; }
.feat-media .phone { transform: rotate(2.5deg); width: 258px; }
.feat.flip .feat-media .phone { transform: rotate(-2.5deg); }

/* ---------- generic card grid (features page) — flex so the last row centers ---------- */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.card { flex: 1 1 290px; max-width: 350px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 22px; padding: 32px 28px; box-shadow: var(--shadow-pop); }
.card h3 { margin: 0 0 12px; }
.card p { line-height: 1.65; }
/* features grid cards read best centered; pricing cards keep their left-aligned lists */
.grid .card { text-align: center; }
.grid .card p { text-wrap: balance; }
.icon-tile { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; border: 2.5px solid var(--ink); }
.tile-amber { background: var(--amber-soft); } .tile-sage { background: var(--sage-soft); } .tile-coral { background: var(--coral-soft); } .tile-blue { background: var(--sky-soft); }

/* ---------- showcase ---------- */
.shots { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; align-items: flex-start; }
.shot { width: 232px; border: 9px solid #1b2033; border-radius: 38px; overflow: hidden; box-shadow: var(--shadow-soft); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 1216; }
.shot:nth-child(1) { transform: rotate(-3deg); }
.shot:nth-child(2) { transform: rotate(1deg) translateY(-18px); }
.shot:nth-child(3) { transform: rotate(3.5deg); }

/* ---------- pricing ---------- */
.price-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); max-width: 760px; margin: 0 auto; }
.price-card { background: var(--white); border: 2.5px solid var(--ink); border-radius: 26px; padding: 32px 28px; text-align: center; position: relative; box-shadow: var(--shadow-pop); }
.price-card.hot { background: #fffdf7; transform: rotate(-1.2deg); box-shadow: 8px 8px 0 var(--amber); }
.price-card .price { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--ink); margin: 8px 0; }
.price-card .price small { font-size: 1.05rem; font-weight: 700; color: var(--ink-soft); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; text-align: left; }
.price-card li { display: flex; gap: 10px; padding: 7px 0; color: var(--ink); font-weight: 600; }
.price-card li::before { content: "✓"; color: var(--sage-deep); font-weight: 800; }
.price-flag { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-3deg); background: var(--coral); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; padding: 7px 16px; border-radius: 999px; border: 2.5px solid var(--ink); white-space: nowrap; }

/* ---------- prose / faq ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; margin-bottom: 0.5em; font-size: 1.55rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.1em; line-height: 1.75; }
.prose ul { color: var(--ink-soft); line-height: 1.8; padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
details { background: var(--white); border: 2.5px solid var(--ink); border-radius: 18px; padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow-pop); }
summary { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; cursor: pointer; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--coral-deep); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details[open] summary { margin-bottom: 12px; }

/* ---------- CTA band ---------- */
.cta-wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-wrap .mascot { position: static; width: 120px; margin: 0 auto 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c7cde0; padding: 60px 0 36px; }
.site-footer .logo-text { color: #fff; }
.site-footer .pencil rect[fill="#fff8f0"], .site-footer .pencil path[fill="#fff8f0"] { fill: #fff8f0; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; margin-bottom: 30px; }
.site-footer h2 { font-family: var(--font-display); font-size: 1rem; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c7cde0; font-weight: 600; }
.site-footer a:hover { color: var(--amber); }
.site-footer .muted { color: #8b93ad; }

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

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .feat, .feat.flip { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta-row, .hero-note { justify-content: center; }
  .hero-stage { min-height: 500px; margin-top: 10px; }
  .feat-media, .feat.flip .feat-media { order: -1; margin-bottom: 8px; }
  .feat ul { display: inline-block; text-align: left; }
  .feat li { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .nav-burger { display: inline-flex; cursor: pointer; padding: 10px; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 24px; height: 2.5px; background: var(--ink); position: relative; border-radius: 3px; }
  .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; }
  .nav-burger span::before { top: -8px; } .nav-burger span::after { top: 8px; }
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 2px solid var(--line); padding: 12px 24px 20px; }
  .nav-links li { width: 100%; padding: 10px 0; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .band { padding: 70px 0; }
}

/* ---------- auth flow pages (/verify, /reset) ---------- */
.auth-card { max-width: 440px; margin: 28px auto 0; text-align: left; }
.field-label { display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.92rem; color: var(--ink); margin-bottom: 6px; }
.field { width: 100%; box-sizing: border-box; padding: 13px 15px; font-family: var(--font-body);
  font-size: 1rem; color: var(--ink); background: var(--white); border: 2px solid var(--ink);
  border-radius: 12px; }
.field:focus { outline: none; border-color: var(--amber-deep); box-shadow: 0 0 0 3px var(--amber-soft); }
.field-err { color: var(--coral-deep); font-size: 0.92rem; font-weight: 600; margin: 12px 0 0; }
.auth-status { font-size: 2rem; line-height: 1; margin-bottom: 6px; }
