/* Build Your First App with AI — site styles
   Palette and type are taken from the book's cover. */

@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --navy: #0C1D3B;
  --navy-deep: #081530;
  --navy-raised: #0E2946;
  --navy-line: #24395C;
  --ink: #13213D;
  --ink-2: #44546F;
  --cyan: #37D0F0;
  --cyan-soft: #E3F7FC;
  --cyan-ink: #08708C;
  --amber: #E39A10;
  --amber-soft: #FDF1DA;
  --paper: #F4EFE4;
  --paper-line: #E1D8C5;
  --mist: #F1F4F9;
  --line: #DAE1EB;
  --white: #FFFFFF;
  --on-navy: #C9D4E6;
  --on-navy-2: #9AABC7;
  --ok: #137A4B;
  --ok-soft: #E3F4EB;
  --err: #B3362C;
  --err-soft: #FBEAE8;
  --font-ui: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-quote: "Lora", Georgia, "Times New Roman", serif;
  --gutter: clamp(18px, 5vw, 32px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 960px) { body { font-size: 1.0625rem; } }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-ui); margin: 0; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.55rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.018em; }
h3 { font-weight: 500; }
strong { font-weight: 500; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9em; background: var(--mist); padding: .08em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--cyan-ink); outline-offset: 2px; border-radius: 4px; }
.nowrap { white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 500; }
.skip-link:focus { top: 12px; }

.wrap { max-width: 1140px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 780px; }
.sec { padding-block: clamp(64px, 9vw, 112px); }
.sec-mist { background: var(--mist); }
.sec-navy { background: var(--navy); color: var(--on-navy); }
.sec-navy h2, .sec-navy h3 { color: var(--white); }
.sec-head { max-width: 46rem; }
.sec-lede { font-size: 1.08rem; color: var(--ink-2); margin: 16px 0 0; }
.sec-navy .sec-lede { color: var(--on-navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.5em;
  border: 0; border-radius: 999px;
  font: 500 1rem/1.2 var(--font-ui); text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, transform .1s ease;
}
.btn-buy {
  background: var(--cyan); color: var(--navy); font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(12, 29, 59, .14), 0 8px 22px -10px rgba(55, 208, 240, .7);
}
.btn-buy:hover { background: #63DCF6; }
.btn-buy:active { transform: translateY(1px); }
.btn-buy:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #17305A; }
.btn-secondary { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1.5px #AEBBD0; }
.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-lg { min-height: 56px; font-size: 1.1rem; padding-inline: 1.9em; }
.btn-sm { min-height: 40px; font-size: .92rem; padding: .5em 1.1em; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .btn-label::before {
  content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .55em; vertical-align: -.1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--white); position: relative; z-index: 20; border-bottom: 1px solid var(--navy-line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 500; font-size: .98rem; line-height: 1.2; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.header-nav { display: none; gap: 26px; }
.header-nav a, .header-back { color: var(--on-navy); text-decoration: none; font-size: .95rem; }
.header-nav a:hover, .header-back:hover { color: var(--white); }
.header-back { font-weight: 500; color: var(--cyan); white-space: nowrap; }
.header-buy { display: none; }
@media (min-width: 960px) {
  .header-nav { display: flex; }
  .header-buy { display: inline-flex; }
}
.page-home .site-header { border-bottom-color: transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); padding: 22px 0 40px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: var(--navy-raised); pointer-events: none; }
.hero::before { width: 560px; height: 560px; right: -260px; top: -280px; }
.hero::after { width: 460px; height: 460px; right: -240px; bottom: -320px; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  grid-template-areas: "text text" "cover offer" "assure assure";
  gap: 24px 20px;
  align-items: start;
}
.hero-text { grid-area: text; }
.hero-cover { grid-area: cover; margin: 0; }
.hero-offer { grid-area: offer; }
.hero-assure { grid-area: assure; }
.hero-kicker { color: var(--cyan); font-weight: 500; font-size: .92rem; line-height: 1.4; margin: 0 0 10px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 1.25rem + 3.6vw, 3.6rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.024em;
  max-width: 14em;
}
.hero-lede { margin: 14px 0 0; font-size: 1.02rem; line-height: 1.65; max-width: 34em; color: var(--on-navy); }
.book3d img { border-radius: 2px 5px 5px 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 16px 34px -12px rgba(0, 0, 0, .65), 0 3px 8px rgba(0, 0, 0, .3); }
.hero-byline { margin-top: 10px; font-size: .8rem; line-height: 1.4; color: var(--on-navy-2); }
.hero-byline .hero-edition { display: none; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.price-amount { font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--amber); }
.price-note { font-size: .9rem; color: var(--on-navy-2); }
.offer-format { margin: 6px 0 14px; font-size: .92rem; color: var(--on-navy); }
.hero-offer .btn-buy { width: 100%; max-width: 340px; }
.hero-trust { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .86rem; line-height: 1.5; color: var(--on-navy-2); max-width: 36rem; }
.hero-trust .icon { color: var(--cyan); margin-top: 1px; }
.iab-tip { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(55, 208, 240, .1); color: var(--on-navy); font-size: .85rem; line-height: 1.5; }

.hero-facts {
  list-style: none; margin: 36px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--navy-line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
}
.hero-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.45; color: var(--on-navy); }
.hero-facts .icon { color: var(--cyan); width: 22px; height: 22px; }

@media (min-width: 600px) {
  .hero-grid { grid-template-columns: 168px minmax(0, 1fr); gap: 28px 32px; }
  .hero-byline .hero-edition { display: block; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 56px; }
  .hero::before { width: 720px; height: 720px; right: -200px; top: -380px; }
  .hero::after { width: 620px; height: 620px; right: -320px; bottom: -420px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    grid-template-areas: "text cover" "offer cover" "assure cover";
    gap: 32px 72px;
  }
  .hero-text { align-self: end; }
  .hero-offer { align-self: start; }
  .hero-assure { align-self: start; margin-top: -12px; }
  .hero-cover { align-self: center; justify-self: center; width: min(100%, 340px); perspective: 1800px; text-align: center; }
  .book3d { position: relative; transform: rotateY(-12deg) rotateX(2deg); transform-origin: 40% 50%; }
  .book3d::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 16px; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .22));
    border-radius: 2px 0 0 2px;
  }
  .book3d img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 18px 26px 50px -18px rgba(0, 0, 0, .75), 0 4px 10px rgba(0, 0, 0, .3); }
  .hero-byline { margin-top: 22px; font-size: .9rem; }
  .price-amount { font-size: 3rem; }
  .hero-offer .btn-buy { width: auto; }
  .hero-facts { grid-template-columns: repeat(4, 1fr); margin-top: 56px; gap: 24px; }
  .hero-facts li { font-size: .92rem; }
}

/* ---------- Questions ("Sound familiar?") ---------- */
.q-grid { display: grid; gap: 36px; }
.q-intro p { color: var(--ink-2); font-size: 1.08rem; max-width: 30rem; }
.q-intro h2 { margin-bottom: 16px; }
.notepad {
  position: relative; background: var(--paper);
  border-radius: 6px; padding: 10px 22px 10px;
  box-shadow: 0 1px 0 rgba(12, 29, 59, .05), 0 18px 34px -22px rgba(12, 29, 59, .45);
}
.notepad::after {
  content: ""; position: absolute; top: 0; right: 0; width: 30px; height: 30px;
  background: linear-gradient(225deg, var(--white) 50%, #DCD2BE 50%);
  border-bottom-left-radius: 4px;
}
.q-list { list-style: none; margin: 0; padding: 0; }
.q-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--paper-line);
}
.q-list li:last-child { border-bottom: 0; }
.q-text { font-weight: 500; font-size: 1.02rem; line-height: 1.45; color: var(--ink); }
.q-ch { font-size: .82rem; color: var(--cyan-ink); white-space: nowrap; font-weight: 500; }
@media (max-width: 420px) {
  .q-list li { grid-template-columns: 1fr; }
}
@media (min-width: 960px) {
  .q-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
  .notepad { padding: 12px 34px 12px; }
}

/* ---------- Journey ---------- */
.journey-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 30px; }
.step { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: start; }
.step-art { width: 76px; height: 76px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 37px; top: 84px; bottom: -26px;
  border-left: 2px dotted rgba(55, 208, 240, .75);
}
.step h3 { display: flex; align-items: center; gap: 10px; font-size: 1.14rem; line-height: 1.3; margin: 6px 0 6px; }
.step-n {
  display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--amber); color: var(--navy); font-size: .82rem; font-weight: 700;
}
.step p { margin: 0; font-size: .97rem; line-height: 1.6; }
.step .step-ch { margin-top: 8px; color: var(--cyan); font-size: .85rem; font-weight: 500; }
.journey-after { margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--navy-line); max-width: 46rem; color: var(--on-navy); }
@media (min-width: 720px) {
  /* Subgrid lines up the titles, text and chapter labels across steps. */
  .journey-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
  .step { grid-template-columns: 1fr; grid-template-rows: subgrid; grid-row: span 4; row-gap: 10px; }
  .step-body { display: contents; }
  .step h3 { margin: 4px 0 0; align-items: flex-start; }
  .step .step-ch { margin-top: 0; }
  .step-art { width: 100px; height: 100px; }
  .step:not(:last-child)::after { display: none; }
}
@media (min-width: 1100px) {
  .journey-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 22px; }
  .step:not(:last-child)::after {
    display: block; left: 112px; right: -8px; top: 49px; bottom: auto;
    border-left: 0; border-top: 2px dotted rgba(55, 208, 240, .85);
  }
  .step:not(:last-child)::before {
    content: ""; position: absolute; top: 45px; right: -10px; width: 9px; height: 9px;
    border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); transform: rotate(45deg);
  }
}
.js .journey .step { transition: opacity .5s ease, transform .5s ease; }
.js .journey:not(.is-in) .step { opacity: 0; transform: translateY(14px); }
.js .journey .step:nth-child(2) { transition-delay: .08s; }
.js .journey .step:nth-child(3) { transition-delay: .16s; }
.js .journey .step:nth-child(4) { transition-delay: .24s; }
.js .journey .step:nth-child(5) { transition-delay: .32s; }
.js .journey .step:nth-child(6) { transition-delay: .4s; }

/* ---------- What you'll learn ---------- */
.stages { list-style: none; margin: 44px 0 0; padding: 0; display: grid; }
.stage { padding: 28px 0 30px; border-top: 1px solid var(--line); }
.stage-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.stage-n {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: .95rem; margin-top: 1px;
}
.stage h3 { font-size: 1.24rem; line-height: 1.3; }
.stage-part { margin: 2px 0 0; font-size: .87rem; color: var(--ink-2); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; line-height: 1.55; }
.ticks .icon { width: 20px; height: 20px; color: var(--cyan-ink); margin-top: 2px; stroke-width: 2.2; }
@media (min-width: 900px) {
  .stages { grid-template-columns: 1fr 1fr; column-gap: 64px; }
}

/* ---------- Resources ---------- */
.res-grid { display: grid; gap: 44px; }
.res-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 24px; }
.res-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.res-icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--mist); color: var(--navy); stroke-width: 1.7; }
.res-list h3 { font-size: 1.06rem; line-height: 1.35; margin: 2px 0 4px; }
.res-list p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ink-2); }
.res-more { margin: 32px 0 0; padding: 16px 18px; border-radius: 12px; background: var(--amber-soft); color: #5A3B00; font-size: .95rem; }
.prompt-card { background: var(--navy); color: var(--on-navy); border-radius: 20px; padding: 26px 24px 24px; }
.prompt-label { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--cyan); font-size: .85rem; font-weight: 500; }
.prompt-card h3 { color: var(--white); font-size: 1.22rem; margin: 0 0 14px; }
.prompt-text {
  margin: 0 0 18px; padding: 16px 18px; border-left: 3px solid var(--cyan); border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, .06); color: var(--white);
  font-family: var(--font-quote); font-style: italic; font-size: 1.1rem; line-height: 1.6;
}
.prompt-text p { margin: 0; }
.prompt-text mark { background: rgba(227, 154, 16, .22); color: #FFD27E; padding: .05em .3em; border-radius: 4px; font-family: var(--font-ui); font-style: normal; font-size: .88em; }
.prompt-why { margin: 0; font-size: .93rem; line-height: 1.6; }
.prompt-why strong { color: var(--white); }
@media (min-width: 640px) {
  .res-list { grid-template-columns: 1fr 1fr; gap: 30px 34px; }
}
@media (min-width: 960px) {
  .res-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 64px; align-items: start; }
  .prompt-card { position: sticky; top: 28px; margin-top: 8px; padding: 30px 28px 28px; }
}

/* ---------- Look inside ---------- */
.inside-grid { display: grid; gap: 40px; margin-top: 40px; }
.excerpts { display: grid; gap: 20px; align-content: start; }
.excerpt { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 18px; }
.excerpt blockquote { margin: 0 0 14px; font-family: var(--font-quote); font-style: italic; font-size: 1.1rem; line-height: 1.65; color: var(--ink); }
.excerpt blockquote p { margin: 0 0 .75em; }
.excerpt blockquote p:last-child { margin-bottom: 0; }
.excerpt figcaption { padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.excerpt cite { font-style: normal; font-weight: 500; color: var(--ink); }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 16px; }
.toc-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.toc-front { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.toc-front:last-child { margin: 14px 0 0; }
.toc-part { border-top: 1px solid var(--line); }
.toc-part summary {
  list-style: none; cursor: pointer; position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label count" "title title";
  gap: 0 12px; padding: 13px 30px 13px 0;
}
.toc-part summary::-webkit-details-marker { display: none; }
.toc-part summary::after {
  content: ""; position: absolute; right: 6px; top: 22px; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s ease;
}
.toc-part[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.toc-part-label { grid-area: label; font-size: .8rem; font-weight: 500; color: var(--cyan-ink); }
.toc-part-title { grid-area: title; font-weight: 500; line-height: 1.4; color: var(--ink); }
.toc-count { grid-area: count; font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.toc-part ol, .toc-app { margin: 0 0 14px; padding-left: 2.1em; font-size: .94rem; color: var(--ink-2); line-height: 1.5; }
.toc-part ol li { padding: 4px 0; }
.toc-part ol li::marker { font-size: .85em; color: #5E6C85; }
.toc-app { list-style: none; padding-left: 0; }
.toc-app li { display: grid; grid-template-columns: 1.8em 1fr; padding: 4px 0; }
.toc-letter { font-weight: 500; color: var(--cyan-ink); }
@media (min-width: 960px) {
  .inside-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: start; }
  .toc { padding: 26px 28px 18px; }
}

/* ---------- Is it for you ---------- */
.fit-grid { display: grid; gap: 28px; margin-top: 36px; }
.fit-col { border-radius: 18px; padding: 26px 22px; }
.fit-yes { background: var(--cyan-soft); }
.fit-no { background: var(--mist); }
.fit-col h3 { font-size: 1.2rem; margin-bottom: 16px; }
.dashes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dashes li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; line-height: 1.55; color: var(--ink-2); }
.dashes .icon { width: 20px; height: 20px; color: #5E6C85; margin-top: 2px; stroke-width: 2.2; }
.dashes strong { color: var(--ink); }
@media (min-width: 900px) {
  .fit-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .fit-col { padding: 32px 30px; }
}

/* ---------- Author ---------- */
.author-grid { display: grid; gap: 28px; align-items: start; }
.author-pic img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px #2B88A6; background: #CDEBF4; }
.author-text h2 { margin-bottom: 18px; }
.author-quote { margin: 0; font-family: var(--font-quote); font-style: italic; font-size: 1.14rem; line-height: 1.7; color: var(--ink); max-width: 40rem; }
.author-quote p { margin: 0 0 .9em; }
.author-sign { margin: 6px 0 0; font-size: .95rem; color: var(--ink-2); }
.author-sign strong { color: var(--ink); }
.author-sign cite { font-style: italic; }
.author-note { margin: 18px 0 0; font-size: .95rem; color: var(--ink-2); max-width: 40rem; }
@media (min-width: 900px) {
  .author-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
  .author-pic img { width: 200px; height: 200px; }
}

/* ---------- What you get ---------- */
.get-grid { display: grid; gap: 40px; }
.spec-list { margin: 26px 0 0; }
.spec-list > div { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.spec-list > div:last-child { border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: .88rem; font-weight: 500; color: var(--ink-2); padding-top: 2px; }
.spec-list dd { margin: 0; line-height: 1.55; }
.price-card { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); border-radius: 22px; padding: 28px 24px 26px; }
.price-card::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--navy-raised); right: -150px; top: -170px; }
.price-card > * { position: relative; }
.price-card-title { margin: 0; color: var(--white); font-weight: 500; }
.price-big { margin: 8px 0 4px; font-size: 3.4rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--amber); }
.price-card-note { margin: 0 0 20px; font-size: .95rem; }
.how { list-style: none; counter-reset: how; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--navy-line); display: grid; gap: 14px; }
.how li { counter-increment: how; position: relative; padding-left: 40px; font-size: .93rem; line-height: 1.55; }
.how li::before {
  content: counter(how); position: absolute; left: 0; top: -1px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--cyan); color: var(--cyan); font-size: .82rem; font-weight: 500;
}
.how strong { color: var(--white); }
.how a { color: var(--cyan); }
.trust { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 26px; }
.trust li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.trust-icon { width: 30px; height: 30px; color: var(--cyan-ink); stroke-width: 1.7; }
.trust h3 { font-size: 1rem; line-height: 1.4; margin: 2px 0 4px; }
.trust p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--ink-2); }
@media (min-width: 720px) { .trust { grid-template-columns: 1fr 1fr; gap: 30px 36px; } }
@media (min-width: 960px) {
  .get-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: start; }
  .price-card { padding: 34px 32px 30px; }
}
@media (min-width: 1100px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 44px 18px 0; font-weight: 500; font-size: 1.04rem; line-height: 1.45; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq-item summary:hover { color: var(--cyan-ink); }
.faq-a { padding: 0 0 20px; color: var(--ink-2); line-height: 1.7; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); padding-block: clamp(64px, 9vw, 104px); }
.final-cta::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--navy-raised); left: -260px; bottom: -330px; }
.final-cta > .wrap { position: relative; }
.final-grid { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: start; }
.final-cover img { border-radius: 2px 4px 4px 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 14px 30px -12px rgba(0, 0, 0, .7); }
.final-text h2 { color: var(--white); }
.final-text > p { margin: 14px 0 0; font-size: 1.05rem; max-width: 34rem; }
.final-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.final-small { margin: 14px 0 0 !important; font-size: .86rem !important; color: var(--on-navy-2); }
@media (max-width: 599px) {
  .final-grid { grid-template-columns: 1fr; }
  .final-cover { width: 108px; }
  .final-buy .btn { width: 100%; }
}
@media (min-width: 760px) {
  .final-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-2); padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .92rem; }
.footer-top { display: grid; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--navy-line); }
.footer-title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--white); font-weight: 500; }
.footer-title .brand-mark { width: 26px; height: 26px; }
.footer-sub { margin: 0; line-height: 1.6; }
.footer-sub a, .footer-links a { color: var(--on-navy); }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { padding-top: 22px; display: grid; gap: 4px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.site-footer :focus-visible, .sec-navy :focus-visible, .hero :focus-visible, .final-cta :focus-visible, .site-header :focus-visible, .price-card :focus-visible, .prompt-card :focus-visible { outline-color: var(--amber); }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .footer-links ul { justify-content: flex-end; max-width: 30rem; }
}

/* ---------- Sticky buy bar (phones) ---------- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(12, 29, 59, .97); border-top: 1px solid var(--navy-line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-buy.is-visible { transform: none; }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 640px; margin: 0 auto; }
.sticky-text { margin: 0; display: grid; line-height: 1.25; color: var(--on-navy-2); font-size: .8rem; }
.sticky-text strong { color: var(--amber); font-size: 1.3rem; font-weight: 700; }
.sticky-buy .btn { flex: 1; max-width: 220px; }
@media (min-width: 960px) { .sticky-buy { display: none !important; } }

/* ---------- Resume banner ---------- */
.resume { background: var(--cyan-soft); color: var(--ink); border-bottom: 1px solid #BFE9F4; }
.resume-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-block: 10px; font-size: .9rem; }
.resume-inner p { margin: 0; display: flex; gap: 8px; align-items: center; }
.resume-inner .icon { color: var(--cyan-ink); }
.resume-link { font-weight: 500; }

/* ---------- Notice (feedback after an action) ---------- */
.notice {
  position: fixed; z-index: 40; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(92vw, 520px); display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); color: var(--ink); border-radius: 14px; padding: 14px 12px 14px 16px;
  border-left: 4px solid var(--cyan-ink); box-shadow: 0 18px 40px -12px rgba(12, 29, 59, .45), 0 2px 6px rgba(12, 29, 59, .12);
  font-size: .95rem; line-height: 1.55;
}
.notice.is-error { border-left-color: var(--err); }
.notice-body { flex: 1; }
.notice-body p { margin: 0; }
.notice-body p + p, .notice-body p + .notice-actions { margin-top: 8px; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; }
.notice-close:hover { background: var(--mist); }
@media (min-width: 960px) { .notice { bottom: 28px; } }

/* ---------- Purchase page ---------- */
.ty-main { background: var(--mist); padding: 32px 0 72px; min-height: 60vh; }
.ty-card { background: var(--white); border-radius: 22px; padding: 28px 22px; box-shadow: 0 1px 0 rgba(12, 29, 59, .04), 0 24px 48px -32px rgba(12, 29, 59, .35); }
.ty-status { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 16px; }
.ty-status .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.ty-status.is-ok { background: var(--ok-soft); color: var(--ok); }
.ty-status.is-wait { background: var(--cyan-soft); color: var(--cyan-ink); }
.ty-status.is-bad { background: var(--err-soft); color: var(--err); }
.ty-card h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.25rem); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 12px; }
.ty-lede { font-size: 1.05rem; color: var(--ink-2); max-width: 36rem; }
.ty-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.ty-actions .btn { min-width: 200px; }
.ty-small { font-size: .9rem; color: var(--ink-2); }
.ty-spinner { width: 30px; height: 30px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .9s linear infinite; }
.ty-box { margin-top: 26px; padding: 18px 18px; border-radius: 14px; background: var(--mist); }
.ty-box h2 { font-size: 1.05rem; letter-spacing: 0; margin-bottom: 8px; }
.ty-box p:last-child { margin-bottom: 0; }
.ty-box.is-tip { background: var(--amber-soft); color: #5A3B00; }
.ty-box.is-tip h2 { color: #5A3B00; }
.receipt { margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 8px; }
.receipt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.receipt-head h2 { font-size: 1.05rem; letter-spacing: 0; }
.receipt dl { margin: 0; }
.receipt dl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.receipt dt { color: var(--ink-2); }
.receipt dd { margin: 0; overflow-wrap: anywhere; }
.copy-btn { margin-left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-2); font: 500 .8rem var(--font-ui); cursor: pointer; vertical-align: 1px; }
.copy-btn .icon { width: 14px; height: 14px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--cyan-ink); font: 500 .9rem var(--font-ui); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.link-btn .icon { width: 18px; height: 18px; }
@media (max-width: 479px) {
  .receipt dl > div, .legal dl > div { grid-template-columns: 1fr; gap: 2px; }
  .receipt dt, .legal dt { font-size: .85rem; }
  .brand { font-size: .92rem; }
}
@media (min-width: 720px) {
  .ty-main { padding: 56px 0 96px; }
  .ty-card { padding: 40px 44px; }
}

/* ---------- Forms (find my purchase) ---------- */
.form { display: grid; gap: 18px; margin-top: 22px; max-width: 30rem; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field .hint { display: block; font-size: .86rem; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.field input {
  width: 100%; min-height: 50px; padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid #AFBCD0; background: var(--white); color: var(--ink);
  font: 400 1rem var(--font-ui);
}
.field input:focus { outline: none; border-color: var(--cyan-ink); box-shadow: 0 0 0 3px rgba(8, 112, 140, .2); }
.form-error { padding: 12px 14px; border-radius: 12px; background: var(--err-soft); color: #7D231C; font-size: .95rem; }

/* ---------- Simple and legal pages ---------- */
.simple-main, .legal-main { background: var(--mist); padding: 40px 0 80px; }
.simple-card, .legal { background: var(--white); border-radius: 20px; padding: 28px 22px; }
.simple-card h1, .legal h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.25rem); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 14px; }
.legal-updated { font-size: .88rem; color: var(--ink-2); }
.legal h2 { font-size: 1.22rem; letter-spacing: 0; line-height: 1.35; margin: 32px 0 10px; }
.legal p, .legal li { color: #2E3D58; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .45em; }
.legal .callout { padding: 14px 16px; border-radius: 12px; background: var(--amber-soft); color: #5A3B00; }
.legal dl > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.legal dt { color: var(--ink-2); font-weight: 500; }
.legal dd { margin: 0; }
@media (min-width: 720px) {
  .simple-card, .legal { padding: 44px 48px; }
}

/* ---------- Print: purchase receipt ---------- */
@media print {
  .site-header, .site-footer, .ty-actions, .ty-box, .notice, .sticky-buy, .copy-btn, .link-btn, .skip-link { display: none !important; }
  .ty-main { background: none; padding: 0; }
  .ty-card { box-shadow: none; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .journey:not(.is-in) .step { opacity: 1; transform: none; }
}
