/* AveoNote landing page. Everything is scoped under .lp so it never touches the app.
   Clean and centered: one short promise, the real app, then calm sections with lots of room.
   The only flourish is the yellow highlighter (and a little handwriting) from the notes themselves. */

.lp {
  --lp-blue: #1f5eff;          /* the logo's blue */
  --lp-tint: color-mix(in srgb, var(--lp-blue) 9%, var(--page));   /* soft blue wash behind the hero */
  --lp-paper-line: #c9d7f0;    /* ruling on the notebook page */
  --lp-margin: #e2706c;        /* notebook margin line */
  --lp-pen: #24324f;           /* ballpoint */
  --lp-hl: color-mix(in srgb, var(--sun) 72%, transparent);   /* highlighter */
  --lp-measure: 36rem;
  --lp-wrap: 1080px;           /* same as the site header */
  --lp-r: 18px;
  --lp-shadow: 0 1px 2px rgba(15, 24, 41, 0.06), 0 12px 32px rgba(15, 24, 41, 0.08);
}
@media (prefers-color-scheme: dark) {
  .lp { --lp-blue: #6f97ff; --lp-hl: color-mix(in srgb, var(--sun) 45%, transparent); --lp-tint: color-mix(in srgb, var(--lp-blue) 12%, var(--page)); --lp-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
}

.lp h1, .lp h2, .lp h3 { text-wrap: balance; }
.lp p { text-wrap: pretty; }
.lp .wrap { width: min(var(--lp-wrap), 100% - 2.5rem); }
.lp img { display: block; max-width: 100%; height: auto; background: color-mix(in srgb, var(--ink) 7%, var(--page)); }
.lp mark { color: inherit; background: linear-gradient(transparent 55%, var(--lp-hl) 55%); padding: 0 2px; font-weight: 700; }

/* ---------- Hero ---------- */
.lp-hero { position: relative; isolation: isolate; padding: clamp(3rem, 8vw, 6rem) 0 0; }
.lp-hero::before {   /* soft wash with a faint dot grid, curving away at the bottom */
  content: ''; position: absolute; z-index: -1; inset: 0 0 clamp(7rem, 20vw, 15rem);
  background:
    radial-gradient(circle, color-mix(in srgb, var(--lp-blue) 16%, transparent) 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--page), var(--lp-tint));
  border-radius: 0 0 50% 50% / 0 0 clamp(2rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%);
          mask-image: linear-gradient(180deg, transparent, #000 30%);
}
.lp-hero-copy { text-align: center; display: grid; justify-items: center; }
.lp-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; font-weight: 800;
  margin: 0 0 1.25rem; font-variation-settings: "wdth" 88;
}
.lp-hero h1 span { display: inline-block; }   /* each sentence stays on its own line when it fits */
.lp-lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--ink-soft); max-width: 38rem; margin: 0; }
.lp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.lp-actions .btn { font-size: 1.05rem; padding: 0.85rem 1.45rem; }
.lp-reassure { margin: 1rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.lp-reassure .ti { color: var(--ok); vertical-align: -1px; }

/* The real app, in a simple browser frame */
.lp-shot {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0; padding: 0; overflow: hidden;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--lp-r);
  box-shadow: 0 2px 4px rgba(15, 24, 41, 0.05), 0 30px 80px rgba(15, 24, 41, 0.16);
}
.lp-shot-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--rule); background: var(--paper); }
.lp-shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--rule); }
.lp-shot-bar span { margin: 0 auto; transform: translateX(-1.5rem); font-size: 0.8rem; color: var(--ink-soft); background: var(--page); padding: 0.15rem 1.4rem; border-radius: 99px; }
.lp-shot img { width: 100%; background: var(--page); }

/* ---------- Sections ---------- */
.lp-section { padding: clamp(4rem, 9vw, 7rem) 0; }
.lp-band { background: var(--paper); }   /* every other section sits on white, like pages in a binder */
.lp-section h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.05; letter-spacing: -0.032em; margin: 0 0 0.8rem; font-variation-settings: "wdth" 90; }
.lp-section-lead { color: var(--ink-soft); max-width: var(--lp-measure); margin: 0; font-size: 1.08rem; }
.lp-head { text-align: center; display: grid; justify-items: center; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.lp-head h2 { max-width: 20ch; }

/* How it works: three photos, numbers circled by hand */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); counter-reset: lp-step; }
.lp-steps li { counter-increment: lp-step; text-align: center; }
.lp-steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--lp-r); }
.lp-steps h3 { display: flex; justify-content: center; align-items: center; gap: 0.55rem; font-size: 1.2rem; margin: 1.25rem 0 0.4rem; }
.lp-steps h3::before {
  content: counter(lp-step); flex: none; width: 2.5rem; height: 2.2rem; display: grid; place-items: center;
  font: 500 1.65rem/1 var(--font-hand); color: var(--ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 46'%3E%3Cpath d='M30 4C16 2 4 10 4 23s11 20 23 19 21-8 21-20S38 3 22 6' fill='none' stroke='%23ffc23a' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lp-steps p { margin: 0 auto; max-width: 30ch; color: var(--ink-soft); }

/* Before and after: the handwritten page, then the note in a chosen style */
.lp-compare { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.lp-page {
  aspect-ratio: 3 / 4; padding: 14px; background: #fff; border-radius: 6px; transform: rotate(-2.5deg);
  box-shadow: 0 1px 2px rgba(15, 24, 41, 0.12), 0 22px 44px rgba(15, 24, 41, 0.14);
  position: sticky; top: 6rem;
}
.lp-page > div {
  position: relative; height: 100%; overflow: hidden; border-radius: 2px; padding: 18px 12px 0 52px;
  background:
    linear-gradient(90deg, transparent 40px, var(--lp-margin) 40px, var(--lp-margin) 42px, transparent 42px),
    repeating-linear-gradient(180deg, #fbfcff 0 27px, var(--lp-paper-line) 27px 28px);
  font: 500 clamp(1.2rem, 1.9vw, 1.42rem)/28px var(--font-hand); color: var(--lp-pen);
}
.lp-page p { margin: 0; white-space: nowrap; }
.lp-page .lp-page-title { font-size: 1.15em; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.lp-page s { text-decoration-thickness: 2px; opacity: 0.7; }
.lp-doodle { position: absolute; right: 18px; bottom: 34px; width: 84px; height: 66px; color: var(--lp-pen); opacity: 0.85; }

.lp-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lp-tab {
  font: 700 0.95rem var(--font-body); color: var(--ink); background: var(--paper); 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: 0.9rem 0 1.1rem; font-size: 0.95rem; color: var(--ink-soft); min-height: 3em; }
.lp-sheet { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--lp-r); padding: clamp(1.25rem, 3vw, 2rem); min-height: 360px; box-shadow: var(--lp-shadow); }
.lp-sheet h3 { font-size: 1.35rem; 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.35rem; }
.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.6rem 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-vtable td:nth-child(2) { width: 112px; }
.lp-vtable img { width: 104px; height: 70px; object-fit: cover; border-radius: 8px; }
.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-figure { margin: 1.25rem 0 0; }
.lp-figure img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 12px; }
.lp-figure figcaption { margin-top: 0.5rem; font-size: 0.84rem; color: var(--ink-soft); }
.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-more { margin: 0.9rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
@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: a real class desk beside what the group keeps for you */
.lp-groups { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lp-groups-photo { margin: 0; }
.lp-groups-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--lp-r); }
.lp-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.85rem; }
.lp-points li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.7rem; align-items: center; }
.lp-points .ti { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; font-size: 1.15rem; color: var(--lp-blue); background: var(--lp-tint); }

/* Tools: worked answers, written like a ledger */
.lp-tools { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lp-ledger { margin: 0; padding: 0.4rem 1.5rem; list-style: none; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--lp-r); box-shadow: var(--lp-shadow); }
.lp-ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; row-gap: 0.1rem; align-items: baseline; padding: 1rem 0; }
.lp-ledger li + li { border-top: 1px solid var(--rule); }
.lp-ledger .lp-tool { font-weight: 700; }
.lp-ledger code { grid-column: 1; font: 400 0.98rem var(--font-body); color: var(--ink-soft); }
.lp-ledger output { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 800 1.3rem 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; align-items: start; }
.lp-plan { position: relative; border: 1px solid var(--rule); border-radius: var(--lp-r); padding: 1.75rem 1.6rem; background: var(--paper); }
.lp-plan.is-pick { border: 2px solid var(--ink); box-shadow: var(--lp-shadow); }
.lp-plan h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.lp-pick-note {
  position: absolute; top: -1.05rem; right: 1.1rem; margin: 0; transform: rotate(3deg);
  font: 500 1.45rem/1 var(--font-hand); color: var(--lp-pen); background: var(--sun); padding: 0.15rem 0.6rem 0.3rem; border-radius: 3px 10px 4px 12px;
}
.lp-price { font: 800 2.5rem/1 var(--font-display); letter-spacing: -0.03em; margin: 0.2rem 0 0.25rem; }
.lp-price-sub { margin: 0 0 1.2rem; font-size: 0.9rem; color: var(--ink-soft); }
.lp-plan ul { margin: 0 0 1.5rem; padding: 0 0 0 1.1rem; display: grid; gap: 0.45rem; font-size: 0.97rem; }
.lp-plan li::marker { color: var(--ok); }
.lp-plan .btn { width: 100%; justify-content: center; }

/* Questions */
.lp-faq { max-width: 44rem; margin: 0 auto; 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.15rem 2.2rem 1.15rem 0; font: 700 1.1rem 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.15rem; color: var(--ink-soft); }

/* Closing call to action: centered on the navy band */
.lp-close { padding: clamp(4rem, 9vw, 6.5rem) 0; background: var(--ink); color: var(--page); text-align: center; }
.lp-close-row { display: grid; justify-items: center; }
.lp-close h2 { color: var(--page); font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.035em; margin: 0; max-width: 16ch; font-variation-settings: "wdth" 88; }
.lp-close p { margin: 0.9rem 0 1.75rem; opacity: 0.8; }
.lp-close .btn { background: var(--sun); color: #1b2a4a; border-color: var(--sun); font-size: 1.05rem; padding: 0.85rem 1.6rem; }
.lp-close .btn:hover { background: transparent; color: var(--sun); }

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {
  .lp-compare, .lp-groups, .lp-tools { grid-template-columns: minmax(0, 1fr); }
  .lp-page { position: static; max-width: 340px; margin-inline: auto; }
  .lp-plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; row-gap: 1.75rem; }
}
@media (max-width: 680px) {
  .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .lp-shot-bar span { display: none; }
  .lp-vtable td:nth-child(2) { width: 84px; }
  .lp-vtable img { width: 76px; height: 56px; }
  .lp-ledger { padding-inline: 1.1rem; }
}

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

/* Until a photo is uploaded its spot is left out, so rows close up neatly */
.lp-groups:not(:has(.lp-groups-photo)) { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
.lp-thumb { display: block; width: 104px; height: 70px; border-radius: 8px; background: color-mix(in srgb, var(--lp-blue) 10%, var(--paper)); }
