@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --surface: #f9f9ff;
  --white: #fff;
  --ink: #16181d;
  --muted: #5e6470;
  --green: #0e7c6b;
  --green-dark: #0a5c4f;
  --green-soft: #e7f2f0;
  --cream: #fff4e5;
  --cream-edge: #faca8c;
  --warm: #834600;
  --line: #e3e6eb;
  --card: #f3f3fa;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.6; }
main { flex: 1; display: flex; flex-direction: column; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
::selection { background: var(--green-soft); }
.desktop-only { display: none; }
.container { width: min(100% - 48px, 1280px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-160%); z-index: 10; padding: 12px 20px; background: var(--white); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The compact view is a welcome screen, not a collapsed desktop page. */
.hero { flex: 1; display: flex; padding-block: max(32px, env(safe-area-inset-top)) 28px; }
.hero-inner { display: flex; align-items: center; justify-content: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 448px; text-align: center; min-width: 0; }
.welcome { display: flex; flex-direction: column; align-items: center; margin-bottom: 22px; }
.mascot-frame { width: 176px; height: 176px; padding: 8px; border: 4px solid var(--white); border-radius: 50%; background: linear-gradient(var(--cream), #faca8c80); box-shadow: 0 12px 32px #df904930, 0 0 44px #faca8c24; overflow: hidden; }
.mascot-frame img { width: 100%; height: 100%; object-fit: contain; }
.mascot-note { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 100%; margin-top: 14px; padding: 5px 14px; border: 1px solid #faca8c99; border-radius: 999px; background: var(--cream); font-size: 13px; font-weight: 600; line-height: 20px; }
.mascot-note strong { color: var(--green-dark); }
.paw { color: var(--warm); font-size: 18px; line-height: 1; margin-right: 3px; }
h1 { font-size: 27px; line-height: 34px; letter-spacing: -.025em; font-weight: 700; }
.hero-description { max-width: 330px; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 24px; text-wrap: pretty; }
.little-promise { margin-block: 24px; padding: 4px 12px; border-radius: 999px; background: var(--cream); color: var(--warm); font-size: 12px; font-weight: 500; }
.little-promise span { margin-right: 4px; }
.download { width: 100%; max-width: 320px; scroll-margin-top: 100px; }
.store-buttons { display: flex; flex-direction: column; gap: 12px; }
.store-button { display: flex; justify-content: center; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 9px 20px; border: 0; border-radius: 16px; background: #000; color: #fff; text-align: left; text-decoration: none; line-height: 1.1; }
.store-button:disabled { opacity: 1; cursor: not-allowed; }
.store-button small { display: block; color: #d1d1d1; font-size: 10px; font-weight: 400; letter-spacing: .025em; text-transform: uppercase; }
.store-button strong { display: block; margin-top: 3px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.store-status { margin-top: 10px; font-size: 11px; color: var(--muted); }
.site-footer { padding: 8px 0 max(16px, env(safe-area-inset-bottom)); }
.footer-inner { display: flex; align-items: center; justify-content: center; }
.legal-links { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.legal-links a:hover { color: var(--green-dark); text-decoration: underline; }
.legal-links > span { color: var(--muted); }

/* Shared standalone legal-status and 404 pages. */
.document-page main { width: min(100% - 48px, 640px); margin: auto; padding-block: 64px; justify-content: center; gap: 20px; }
.document-page h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; }
.document-page p { color: var(--muted); }
.document-page .status-label { color: var(--warm); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.document-page .button { align-self: flex-start; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding: 12px 24px; border-radius: 999px; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s; }
.button:hover { background: var(--green-dark); }

/* Long-form legal pages. */
.legal-page main { width: min(100% - 48px, 720px); margin: 0 auto; padding-block: 40px 64px; justify-content: flex-start; gap: 0; }
.legal-page .back-link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; color: var(--green-dark); font-size: 14px; font-weight: 600; text-decoration: none; }
.legal-page .back-link:hover { text-decoration: underline; }
.legal-page .status-label { margin-top: 24px; }
.legal-page h1 { margin-top: 8px; }
.legal-page h2 { margin-top: 36px; font-size: 20px; letter-spacing: -.015em; }
.legal-page main > p, .legal-page li { margin-top: 12px; color: var(--muted); }
.legal-page ul { margin: 0; padding-left: 22px; }
.legal-page strong { color: var(--ink); }
.legal-page main > p a, .legal-page li a { color: var(--green-dark); font-weight: 500; }
.legal-page .effective-date { margin-top: 12px; font-size: 13px; }
.legal-page .draft-banner { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--cream-edge); border-radius: 12px; background: var(--cream); color: var(--ink); font-size: 14px; }
.legal-page .button { margin-top: 40px; }
.todo { padding: 0 4px; border-radius: 4px; background: var(--cream); color: var(--warm); font-weight: 600; }

@media (min-width: 1024px) {
  .desktop-only { display: block; }
  .mobile-only { display: none; }
  .container { width: min(100% - 64px, 1280px); }
  main { display: block; }
  .site-header { position: sticky; top: 0; z-index: 5; background: #ffffffed; border-bottom: 1px solid #e3e6eb80; backdrop-filter: blur(12px); }
  .header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 21px; text-decoration: none; }
  .brand-label { padding: 2px 7px; border-radius: 999px; background: var(--cream); color: var(--warm); font-size: 10px; letter-spacing: .06em; font-weight: 600; text-transform: uppercase; }
  .header-inner nav { display: flex; gap: 28px; }
  .header-inner nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
  .header-inner nav a:hover { color: var(--green-dark); }
  .button-small { min-height: 44px; padding: 10px 20px; font-size: 13px; }
  .hero { padding-block: 80px 76px; background: radial-gradient(ellipse at 3% 5%, #e7f2f09c, transparent 46%), radial-gradient(ellipse at 94% 70%, #fff4e5a8, transparent 42%); }
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; }
  .hero-copy { max-width: none; align-items: flex-start; text-align: left; }
  h1 { order: 1; font-size: clamp(40px, 3.7vw, 52px); line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
  .hero-description { order: 2; max-width: 530px; margin-top: 22px; font-size: 17px; line-height: 28px; }
  .welcome { order: 3; flex-direction: row; gap: 12px; margin-top: 24px; margin-bottom: 26px; padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--white); border: 1px solid #e3e6eb80; }
  .mascot-frame { width: 50px; height: 50px; padding: 2px; border: 0; box-shadow: none; flex-shrink: 0; }
  .mascot-note { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; max-width: 300px; font-size: 13px; }
  .mascot-note strong { display: block; font-size: 14px; }
  .mascot-note .paw { display: none; }
  .little-promise { order: 0; margin: 0 0 20px; background: var(--white); border: 1px solid #e3e6eb80; font-size: 12px; }
  .download { order: 4; max-width: 416px; }
  .store-buttons { flex-direction: row; }
  .store-button { padding-inline: 15px; border-radius: 12px; gap: 10px; }
  .store-button small { font-size: 9px; }
  .store-button strong { font-size: 19px; }
  .store-status { margin-top: 12px; font-size: 12px; }
  .hero-assurance { margin-top: 4px; color: var(--green-dark); font-size: 12px; font-weight: 500; }
  .phone-preview { position: relative; width: 100%; max-width: 350px; justify-self: center; }
  .phone { padding: 14px; background: var(--white); border: 1px solid #e3e6eb80; border-radius: 36px; box-shadow: 0 20px 50px #16181d14, 0 4px 12px #16181d0d; transform: rotate(2deg); }
  .phone-top { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 12px; font-size: 10px; font-weight: 600; }
  .camera { width: 78px; height: 17px; background: var(--ink); border-radius: 999px; }
  .clip-scene { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; background: linear-gradient(#0002, #0001, #0007), url("/assets/korean-scene.webp") center/cover; border-radius: 20px; border-bottom: 3px solid var(--green); overflow: hidden; }
  .clip-label, .clip-duration { position: absolute; padding: 3px 7px; border-radius: 5px; color: #fff; font-size: 9px; background: #000b; }
  .clip-label { top: 10px; left: 10px; }
  .clip-duration { bottom: 10px; right: 10px; }
  .play-mark { display: grid; place-items: center; width: 40px; height: 40px; padding-left: 3px; background: #fffffff2; border-radius: 50%; color: var(--green-dark); font-size: 15px; }
  .transcript { margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--card); }
  .transcript-heading { display: flex; justify-content: space-between; align-items: center; color: var(--warm); font-size: 9px; }
  .level { padding: 2px 6px; border-radius: 5px; background: var(--white); color: var(--muted); }
  .korean-sentence { margin: 12px 0 8px; font-size: 17px; font-weight: 500; }
  mark { padding: 5px; border-radius: 5px; color: #fff; background: var(--green-dark); }
  .romanization { color: var(--muted); font-size: 10px; font-style: italic; }
  .translation { margin-top: 4px; font-size: 11px; }
  .word-card { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
  .word-heading { display: flex; align-items: center; gap: 8px; }
  .word-heading strong { color: var(--green-dark); font-size: 24px; }
  .word-heading > span { color: var(--muted); font-size: 10px; }
  .word-type { padding: 2px 5px; border-radius: 4px; background: var(--card); }
  .word-card > p { font-size: 11px; }
  .grammar-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px; border-radius: 7px; background: var(--card); font-size: 9px; }
  .grammar-note strong { color: var(--green-dark); }
  .memory-note { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 9px; color: var(--green-dark); }
  .memory-note span:last-child { color: var(--warm); }
  .phone-tip { display: flex; align-items: center; gap: 10px; padding: 8px; margin-top: 12px; border-radius: 10px; background: var(--cream); font-size: 10px; color: var(--warm); }
  .phone-preview figcaption { margin-top: 22px; text-align: center; font-size: 11px; color: var(--muted); }
  .floating-note { position: absolute; bottom: 210px; left: -168px; transform: rotate(-6deg); padding: 9px 14px; border: 1px solid var(--cream-edge); border-radius: 12px; color: var(--warm); background: var(--cream); font-size: 12px; box-shadow: 0 4px 12px #16181d0a; }
  .highlights { padding-block: 34px; background: var(--white); border-block: 1px solid #e3e6eb60; }
  .highlights-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
  .highlights strong { display: block; font-size: 21px; color: var(--green-dark); }
  .highlights span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
  .highlights p:nth-child(2) strong { color: var(--warm); }
  .section { padding-block: 88px; }
  .section-white { background: var(--white); }
  .section-heading { margin-bottom: 36px; text-align: center; }
  .eyebrow { display: inline-block; color: var(--green-dark); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; }
  .section-heading > .eyebrow { padding: 4px 10px; background: var(--green-soft); border-radius: 999px; }
  h2 { margin-top: 12px; font-size: 30px; font-weight: 600; letter-spacing: -.025em; }
  .section-heading > p { margin-top: 12px; color: var(--muted); font-size: 15px; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .step-card { display: flex; flex-direction: column; padding: 26px; border: 1px solid #e3e6eb90; border-radius: 18px; background: var(--white); }
  .step-number { display: grid; place-items: center; align-self: flex-start; width: 42px; height: 42px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); font-size: 16px; font-weight: 600; }
  .warm { background: var(--cream); color: var(--warm); }
  h3 { font-size: 19px; letter-spacing: -.02em; font-weight: 600; }
  .step-card h3 { margin-top: 20px; }
  .step-card > p, .feature-card > p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }
  .step-card > p { margin-bottom: 24px; }
  .step-detail { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px; border-radius: 8px; background: var(--card); font-size: 11px; color: var(--muted); }
  .step-detail > span:first-child { color: var(--green-dark); font-size: 18px; }
  .review-sample { display: flex; gap: 6px; margin-top: auto; }
  .review-sample span { flex: 1; padding: 12px 4px; background: var(--card); color: var(--muted); border-radius: 7px; text-align: center; font-size: 10px; }
  .review-sample span:first-child { color: #a82020; background: #fcebeb; }
  .review-sample span:nth-child(3) { color: #fff; background: var(--green-dark); }
  .review-sample span:last-child { color: #17643c; background: #ddf2e5; }
  .align-left { text-align: left; }
  .section-heading > .warm-text { color: var(--warm); background: var(--cream); }
  .warm-text { color: var(--warm); }
  .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .feature-card { padding: 28px; border-radius: 18px; background: var(--card); }
  .transcript-feature { grid-column: span 2; }
  .feature-card:nth-child(3) { grid-column: span 2; }
  .card-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
  .sample-lines { margin-top: 24px; padding: 6px; border-radius: 12px; background: var(--white); }
  .sample-lines > div { padding: 12px 16px; border-radius: 8px; }
  .sample-lines > div:first-child { background: var(--green-soft); }
  .sample-lines > div + div { opacity: .8; }
  .sample-lines p { font-size: 16px; line-height: 1.8; }
  .sample-lines span { color: var(--muted); font-size: 11px; }
  .sample-time { float: right; margin-left: 16px; }
  .buddy-feature { display: flex; flex-direction: column; background: var(--cream); }
  .buddy-feature img { margin-bottom: 18px; }
  .buddy-signature { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; margin-top: auto; color: var(--warm); font-size: 12px; }
  .word-pieces { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 24px; }
  .word-pieces > span { flex: 1; padding: 16px 8px; border-radius: 9px; background: var(--white); text-align: center; font-size: 18px; }
  .word-pieces > span:nth-of-type(2) { color: var(--green-dark); }
  .word-pieces > span:last-child { color: var(--warm); }
  .word-pieces small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
  .word-pieces b { font-size: 13px; color: var(--muted); }
  .habit-note { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 14px; border-radius: 10px; background: var(--white); }
  .habit-icon { color: var(--green); font-size: 32px; }
  .habit-note strong { display: block; font-size: 12px; line-height: 1.5; font-weight: 500; }
  .habit-note p { margin-top: 4px; color: var(--muted); font-size: 11px; }
  .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; max-width: 1080px; margin-inline: auto; padding-top: 14px; }
  .price-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px 24px; border: 1px solid #e3e6eb90; border-radius: 18px; background: var(--white); }
  .price-card.featured { border: 2px solid var(--green); box-shadow: 0 18px 40px #0e7c6b1c; }
  .plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: var(--warm); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
  .plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .plan-tag { padding: 2px 9px; border-radius: 999px; background: var(--card); color: var(--muted); font-size: 11px; font-weight: 500; }
  .featured .plan-tag { background: var(--green-soft); color: var(--green-dark); }
  .price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
  .price strong { font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.035em; }
  .price span { color: var(--muted); font-size: 14px; }
  .price-weekly { margin-top: 8px; color: var(--green-dark); font-size: 13px; font-weight: 600; }
  .plan-description { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
  .plan-features { display: grid; gap: 10px; margin: 22px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; }
  .plan-features li { display: flex; gap: 10px; }
  .plan-features li::before { content: "✓"; color: var(--green); font-weight: 700; }
  .price-card .button { margin-top: auto; }
  .button-outline { background: var(--white); color: var(--green-dark); box-shadow: inset 0 0 0 1.5px var(--green); }
  .button-outline:hover { background: var(--green-soft); }
  .plan-note { margin-top: 10px; text-align: center; color: var(--muted); font-size: 12px; }
  .pricing-guarantee { display: flex; align-items: flex-start; gap: 12px; max-width: 800px; margin: 36px auto 0; padding: 16px 20px; border-radius: 14px; background: var(--green-soft); font-size: 13px; }
  .guarantee-icon { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; }
  .pricing-fine-print { max-width: 800px; margin: 14px auto 0; text-align: center; color: var(--muted); font-size: 12px; }
  .review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .review-card { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 28px; border-radius: 18px; background: var(--card); }
  .review-card blockquote { margin: 0; font-size: 15px; line-height: 1.7; }
  .review-card b { color: var(--green-dark); font-weight: 600; }
  .review-card figcaption { display: flex; align-items: center; gap: 12px; }
  .avatar { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--cream); color: var(--warm); font-size: 14px; font-weight: 600; }
  .review-card figcaption strong { display: block; font-size: 14px; }
  .review-card figcaption strong + span { display: block; color: var(--muted); font-size: 12px; }
  .faq-container { max-width: 800px; }
  details { padding: 0 24px; border: 1px solid #e3e6eb80; border-radius: 14px; background: var(--white); }
  details + details { margin-top: 12px; }
  summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; min-height: 60px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 500; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; flex-shrink: 0; color: var(--green-dark); font-size: 22px; font-weight: 400; }
  details[open] summary::after { content: "−"; }
  details > p { padding-bottom: 24px; max-width: 650px; font-size: 14px; color: var(--muted); }
  .closing-section { padding-block: 64px; background: var(--cream); }
  .closing-card { display: flex; align-items: center; gap: 28px; padding: 36px; border-radius: 24px; background: var(--white); border: 1px solid #faca8c55; box-shadow: 0 8px 24px #83460008; }
  .closing-card > img { flex-shrink: 0; }
  .closing-card h2 { margin-top: 8px; font-size: 27px; }
  .closing-card p { margin-top: 12px; max-width: 370px; color: var(--muted); font-size: 13px; }
  .closing-card > .button { margin-left: auto; flex-shrink: 0; }
  .site-footer { padding-block: 32px; background: var(--white); }
  .footer-inner { justify-content: space-between; gap: 24px; }
  .footer-brand p { margin-top: 8px; color: var(--muted); font-size: 12px; }
  .document-page main { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
