/* AveoNote landing page. Everything is scoped under .lp so it never touches the app.
   One bold moment: the photo of a handwritten page gets scanned once and the clean note settles beside it.
   Everything else is quiet: brand ink, ruled paper, sunrise yellow only as a highlighter. */

.lp {
  --lp-blue: #1f5eff;          /* the logo's blue */
  --lp-paper-line: #c9d7f0;    /* ruling on the photographed page */
  --lp-margin: #e2706c;        /* notebook margin line */
  --lp-photo-ink: #24324f;     /* ballpoint on the photo */
  --lp-measure: 34rem;
}
@media (prefers-color-scheme: dark) { .lp { --lp-blue: #6f97ff; } }

.lp h1, .lp h2, .lp h3 { text-wrap: balance; }
.lp p { text-wrap: pretty; }
.lp .wrap { width: min(1120px, 100% - 2.5rem); }

/* ---------- Hero ---------- */
.lp-hero { padding: clamp(2.25rem, 6vw, 4.75rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: clip; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lp-hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.75rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800;
  max-width: 11ch; margin: 0 0 1.25rem;
  font-variation-settings: "wdth" 88;
}
.lp-lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--ink-soft); max-width: var(--lp-measure); margin: 0; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; align-items: center; }
.lp-actions .btn { font-size: 1.05rem; padding: 0.85rem 1.45rem; }
.lp-reassure { margin: 1.1rem 0 0; font-size: 0.95rem; color: var(--ink-soft); display: flex; gap: 0.45rem; align-items: center; }
.lp-reassure .ti { color: var(--ok); }

/* The stage: a photo of a handwritten page, and the clean note made from it */
.lp-stage { position: relative; min-height: 470px; isolation: isolate; }
.lp-photo {
  position: absolute; left: 0; top: 0; width: min(330px, 74%);
  aspect-ratio: 3 / 4; padding: 14px; background: #fff; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15, 24, 41, 0.12), 0 18px 40px rgba(15, 24, 41, 0.16);
  transform: rotate(-4.5deg); transform-origin: 30% 40%;
}
.lp-page {
  position: relative; height: 100%; overflow: hidden; border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 38px, var(--lp-margin) 38px, var(--lp-margin) 40px, transparent 40px),
    repeating-linear-gradient(180deg, #fbfcff 0 25px, var(--lp-paper-line) 25px 26px);
  background-color: #fbfcff;
  padding: 18px 12px 0 50px;
  font-family: var(--font-hand); color: var(--lp-photo-ink); font-size: 1.32rem; line-height: 26px;
}
.lp-page p { margin: 0; white-space: nowrap; }
.lp-page .lp-scrawl-title { font-size: 1.55rem; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.lp-page s { text-decoration-thickness: 2px; opacity: 0.75; }
.lp-page .lp-doodle { position: absolute; right: 14px; bottom: 26px; width: 74px; height: 58px; color: var(--lp-photo-ink); opacity: 0.85; }
.lp-photo::after {   /* a little phone-photo glare */
  content: ''; position: absolute; inset: 14px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.35) 52%, rgba(255, 255, 255, 0) 60%);
}
.lp-scanline {
  position: absolute; left: 14px; right: 14px; top: 14px; height: 3px; border-radius: 3px; opacity: 0;
  background: var(--lp-blue); box-shadow: 0 0 0 1px rgba(31, 94, 255, 0.15), 0 0 22px 6px rgba(31, 94, 255, 0.35);
}

.lp-note {
  position: absolute; right: 0; bottom: 0; width: min(380px, 82%);
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 16px;
  padding: 1.35rem 1.4rem 1.2rem; box-shadow: 0 24px 60px rgba(15, 24, 41, 0.18);
}
.lp-note h3 { font-size: 1.35rem; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
.lp-note ul { margin: 0 0 1rem; padding-left: 1.1rem; font-size: 0.97rem; line-height: 1.5; }
.lp-note li + li { margin-top: 0.3rem; }
.lp-mark { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--sun) 70%, transparent) 58%); padding: 0 1px; font-weight: 700; }
.lp-figure { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 0.8rem; align-items: center; padding-top: 0.9rem; border-top: 1px dashed var(--rule); }
.lp-figure svg { width: 96px; height: 68px; border-radius: 10px; background: color-mix(in srgb, var(--lp-blue) 9%, var(--paper)); color: var(--ink); }
.lp-figure figcaption { font-size: 0.82rem; line-height: 1.4; color: var(--ink-soft); }
.lp-note-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.lp-chip { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 700; padding: 0.35rem 0.7rem; border-radius: 99px; background: var(--page); border: 1px solid var(--rule); }

/* The one orchestrated moment: scan once, then the note arrives */
@media (prefers-reduced-motion: no-preference) {
  .lp-scanline { animation: lp-scan 1.7s cubic-bezier(.45, 0, .3, 1) 0.35s 1 both; }
  .lp-note { animation: lp-arrive 0.6s cubic-bezier(.2, .8, .2, 1) 1.75s both; }
  @keyframes lp-scan {
    0% { opacity: 0; transform: translateY(0); }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { opacity: 0; transform: translateY(calc(var(--lp-photo-h, 410px) - 30px)); }
  }
  @keyframes lp-arrive { from { opacity: 0; transform: translate(-28px, 14px) scale(0.97); } to { opacity: 1; transform: none; } }
}

/* ---------- Sections ---------- */
.lp-section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--rule); }
.lp-section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.028em; max-width: 20ch; margin: 0 0 0.75rem; }
.lp-section-lead { color: var(--ink-soft); max-width: var(--lp-measure); margin: 0; font-size: 1.08rem; }

/* How it works: a real sequence, so it's numbered */
.lp-steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: lp-step; }
.lp-steps li { counter-increment: lp-step; position: relative; padding: 0 2rem 0 0; }
.lp-steps li + li { padding-left: 2rem; border-left: 1px solid var(--rule); }
.lp-steps li::before {
  content: counter(lp-step); display: block; font: 800 3.4rem/1 var(--font-display); letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--ink) 18%, transparent); margin-bottom: 0.9rem;
}
.lp-steps h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.lp-steps p { margin: 0; color: var(--ink-soft); }

/* Note styles: the same lesson, switched between styles */
.lp-styles { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.lp-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.75rem 0 0; }
.lp-tab {
  font: 700 0.95rem var(--font-body); color: var(--ink); background: transparent; border: 1.5px solid var(--rule);
  border-radius: 99px; padding: 0.5rem 1rem; cursor: pointer;
}
.lp-tab:hover { border-color: var(--ink); }
.lp-tab[aria-selected="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.lp-tab:focus-visible, .lp-faq summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.lp-style-hint { margin: 1rem 0 0; font-size: 0.95rem; color: var(--ink-soft); min-height: 3em; }
.lp-sheet {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem);
  min-height: 330px; box-shadow: 0 1px 0 var(--rule);
}
.lp-sheet h3 { font-size: 1.3rem; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.lp-sheet ul, .lp-sheet ol { margin: 0; padding-left: 1.15rem; line-height: 1.55; }
.lp-sheet li + li { margin-top: 0.3rem; }
.lp-sheet table { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.45; }
.lp-sheet th, .lp-sheet td { text-align: left; vertical-align: top; padding: 0.55rem 0.65rem; border-bottom: 1px solid var(--rule); }
.lp-sheet th { font-family: var(--font-display); font-size: 0.9rem; }
.lp-sheet .lp-cue { width: 34%; color: var(--ink-soft); font-weight: 700; border-right: 2px solid var(--lp-margin); }
.lp-sheet .lp-summary { margin: 0.9rem 0 0; padding: 0.75rem 0.9rem; border-radius: 10px; background: var(--page); font-size: 0.93rem; }
.lp-q { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--rule); }
.lp-q p { margin: 0 0 0.5rem; font-weight: 700; }
.lp-q ol { list-style: upper-alpha; }
.lp-q .lp-right { background: color-mix(in srgb, var(--ok) 14%, transparent); border-radius: 6px; padding: 0 0.3rem; }
.lp-thumb { width: 58px; height: 42px; border-radius: 6px; background: color-mix(in srgb, var(--lp-blue) 10%, var(--paper)); display: block; }
@media (prefers-reduced-motion: no-preference) { .lp-sheet[data-swapped] { animation: lp-swap 0.28s ease-out; } @keyframes lp-swap { from { opacity: 0.4; transform: translateY(4px); } to { opacity: 1; transform: none; } } }

/* Groups: your semester as folders */
.lp-semester { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lp-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.lp-points li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.5rem; align-items: start; }
.lp-points .ti { font-size: 1.25rem; color: var(--lp-blue); margin-top: 0.15rem; }
.lp-shelf { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.lp-shelf-head { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--rule); }
.lp-shelf-head .lp-emblem { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font: 800 1rem var(--font-display); color: #fff; font-size: 1rem; background: linear-gradient(140deg, #173b8f, #1f5eff); flex: none; }
.lp-shelf-head strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.lp-shelf-head span { font-size: 0.86rem; color: var(--ink-soft); }
.lp-crumbs { padding: 0.75rem 1.2rem 0; font-size: 0.86rem; color: var(--ink-soft); }
.lp-folders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; padding: 0.75rem 1.2rem 1.2rem; }
.lp-folder { border: 1px solid var(--rule); border-radius: 12px; padding: 0.8rem 0.85rem; background: var(--page); }
.lp-folder .ti { font-size: 1.4rem; color: var(--lp-blue); }
.lp-folder strong { display: block; margin-top: 0.3rem; font-family: var(--font-display); }
.lp-folder span { font-size: 0.82rem; color: var(--ink-soft); }
.lp-folder.is-now { border-color: var(--ink); background: var(--paper); box-shadow: inset 0 -3px 0 var(--sun); }
.lp-chat { margin: 0 1.2rem 1.2rem; padding: 0.75rem 0.9rem; border-radius: 12px; background: color-mix(in srgb, var(--lp-blue) 7%, var(--paper)); font-size: 0.92rem; display: grid; gap: 0.15rem; }
.lp-chat b { font-size: 0.82rem; color: var(--lp-blue); }

/* Tools: three worked answers, written like a ledger */
.lp-ledger { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.lp-ledger li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 11rem; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.lp-ledger .lp-tool { font-weight: 700; }
.lp-ledger code { font: 600 1rem var(--font-body); color: var(--ink-soft); }
.lp-ledger output { font: 800 1.25rem var(--font-display); letter-spacing: -0.02em; text-align: right; white-space: nowrap; }

/* Plans */
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.25rem; align-items: start; }
.lp-plan { border: 1px solid var(--rule); border-radius: 18px; padding: 1.5rem 1.5rem 1.6rem; background: var(--paper); }
.lp-plan.is-pick { border: 2px solid var(--ink); }
.lp-plan h3 { font-size: 1.15rem; margin: 0 0 0.5rem; display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.lp-plan h3 small { font: 700 0.8rem var(--font-body); color: var(--ink); background: var(--sun); padding: 0.15rem 0.55rem; border-radius: 99px; }
.lp-price { font: 800 2.4rem/1 var(--font-display); letter-spacing: -0.03em; margin: 0.2rem 0 0.25rem; }
.lp-price-sub { margin: 0 0 1.1rem; font-size: 0.9rem; color: var(--ink-soft); }
.lp-plan ul { margin: 0 0 1.4rem; padding: 0; list-style: none; display: grid; gap: 0.45rem; font-size: 0.97rem; }
.lp-plan li { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.35rem; }
.lp-plan li .ti { color: var(--ok); margin-top: 0.2rem; }
.lp-plan .btn { width: 100%; justify-content: center; }

/* Questions */
.lp-faq { max-width: 46rem; margin-top: 1.75rem; border-top: 1px solid var(--rule); }
.lp-faq details { border-bottom: 1px solid var(--rule); }
.lp-faq summary { list-style: none; cursor: pointer; padding: 1.05rem 2.2rem 1.05rem 0; font: 700 1.08rem var(--font-display); position: relative; border-radius: 6px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--ink-soft); transition: transform 0.2s; }
.lp-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lp-faq details p { margin: 0 0 1.1rem; color: var(--ink-soft); max-width: var(--lp-measure); }

/* Closing call to action */
.lp-close { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--ink); color: var(--page); }
.lp-close-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.lp-close h2 { color: var(--page); font-size: clamp(1.8rem, 3.8vw, 2.7rem); letter-spacing: -0.03em; margin: 0; max-width: 18ch; }
.lp-close .btn { background: var(--sun); color: #1b2a4a; border-color: var(--sun); font-size: 1.05rem; padding: 0.85rem 1.5rem; }
.lp-close .btn:hover { background: transparent; color: var(--sun); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .lp-hero-grid, .lp-styles, .lp-semester { grid-template-columns: minmax(0, 1fr); }
  .lp-stage { min-height: 430px; max-width: 520px; }
  .lp-plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
}
@media (max-width: 680px) {
  .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .lp-steps li, .lp-steps li + li { padding: 0; border-left: 0; }
  .lp-steps li::before { font-size: 2.6rem; margin-bottom: 0.4rem; }
  .lp-ledger li { grid-template-columns: minmax(0, 1fr) auto; }
  .lp-ledger code { grid-column: 1 / -1; grid-row: 2; }
  .lp-folders { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .lp-stage { min-height: 520px; }
  .lp-photo { width: 78%; }
  .lp-note { width: 92%; }
  .lp-page { font-size: 1.15rem; }
}

/* The closing band runs straight into the footer */
body.landing .site-footer { margin-top: 0; }
