:root {
  color-scheme: light;
  --cream: #fff9f2;
  --ink: #362a22;
  --secondary: #746052;
  --orange: #ff894d;
  --line: #eadfd3;
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 20px; padding: 12px 20px; z-index: 10; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.site-header { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; }
.brand img { width: 132px; height: auto; object-fit: contain; }
nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 600; }
.how-link { color: var(--secondary); }
.how-link:hover { color: var(--ink); }
.nav-cta { position: relative; display: inline-flex; justify-content: center; align-items: center; padding: 12px 38px; border: 1px solid var(--line); border-radius: 100px; }
.nav-cta-arrow { position: absolute; right: 19px; }
.nav-cta:hover { background: #f9eddf; }
.hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 30px; padding-block: 72px 84px; }
.eyebrow { margin: 0 0 24px; color: var(--secondary); font-size: 13px; font-weight: 600; }
h1 { margin: 0; font-size: clamp(44px, 4.5vw, 65px); font-weight: 600; line-height: 1.12; letter-spacing: -3.3px; }
h1 span { color: #b64d24; }
.hero-description { max-width: 360px; margin: 24px 0 32px; font-size: 17px; line-height: 1.75; color: var(--secondary); }
.downloads { display: flex; gap: 12px; flex-wrap: wrap; }
.download-button { min-width: 182px; min-height: 66px; padding: 12px 19px; border-radius: 16px; display: flex; align-items: center; gap: 14px; transition: transform 160ms ease, background 160ms ease; }
.download-button:hover { transform: translateY(-2px); }
.download-secondary { border: 1px solid #d8cabc; background: transparent; }
.download-secondary:hover { background: #f9eddf; }
.platform-mark { display: block; width: 28px; height: 28px; flex-shrink: 0; object-fit: contain; }
.platform-name, .download-label { display: block; }
.platform-name { font-size: 11px; margin-bottom: 3px; }
.download-label { font-size: 16px; font-weight: 600; }
.hero-art { position: relative; width: 100%; max-width: 480px; margin: 0; aspect-ratio: 1; }
.orb { display: block; width: 100%; height: auto; }
.greeting { position: absolute; z-index: 1; padding: 12px 23px; border-radius: 20px; font-size: 24px; letter-spacing: -.6px; font-weight: 500; }
.greeting-hola { left: 3%; top: 7%; background: #ffeadb; transform: rotate(-9deg); }
.greeting-salut { right: 0; top: 25%; background: #eee5f5; transform: rotate(8deg); }
.greeting-ciao { left: 7%; bottom: 14%; background: #edf0dd; transform: rotate(-7deg); }
figcaption { position: absolute; bottom: -10px; left: 0; width: 100%; text-align: center; font-size: 13px; color: var(--secondary); }
.how-section { padding-block: 46px 48px; border-top: 1px solid var(--line); }
h2 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: -1px; }
h3 { margin: 0 0 9px; font-size: 18px; font-weight: 600; letter-spacing: -.4px; }
.experience-intro { margin: 12px 0 24px; font-size: 15px; color: var(--secondary); line-height: 1.7; }
.scene-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.scene-tabs button { padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--secondary); font-size: 14px; }
.scene-tabs button[aria-selected="true"] { border-bottom-color: #ba6038; color: var(--ink); font-weight: 600; }
.scene-panel { display: grid; grid-template-columns: .86fr 1.14fr; align-items: start; gap: 60px; margin-top: 28px; }
.how-section button:focus-visible, .how-section select:focus-visible { outline: 2px solid #ba6038; outline-offset: 2px; }
.scene-story { max-width: 365px; }
.scene-story h3 { font-size: 34px; letter-spacing: -1.3px; line-height: 1.22; margin-bottom: 21px; }
.scene-story p { color: var(--secondary); font-size: 16px; line-height: 1.75; }
.scene-story .scene-hint { font-size: 13px; margin-top: 25px; }
.scene-story.topic-picker { max-width: 100%; align-self: start; }
.picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.picker-heading > span { font-size: 13px; font-weight: 600; }
.picker-heading select { max-width: 155px; padding: 9px 4px; border: 0; border-radius: 4px; background: transparent; color: var(--secondary); font: inherit; font-size: 12px; cursor: pointer; }
.topic-list { display: grid; gap: 4px; }
.topic-list button { display: flex; align-items: center; gap: 12px; min-height: 48px; border: 0; border-radius: 9px; background: transparent; padding: 9px 13px; text-align: left; font-size: 14px; line-height: 1.5; }
.topic-symbol { display: grid; place-items: center; flex: 0 0 24px; height: 24px; }
.topic-symbol img { display: block; width: 20px; height: 20px; }
.topic-label { min-width: 0; }
.topic-list button:hover { background: #f8eddf; }
.topic-list button[aria-pressed="true"] { background: #ffeadb; font-weight: 600; }
.practice-goal { margin-top: 16px; }
.practice-goal p { color: var(--secondary); font-size: 13px; line-height: 1.6; margin: 0; }
.question-label { font-size: 11px; color: var(--secondary); text-align: center; margin: 0 0 8px; }
.user-caption #sample-reply { display: block; margin: 7px 0 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.preview-shell { width: min(100%, 380px); justify-self: center; min-height: 475px; border: 1px solid #e3d3c2; border-radius: 26px; padding: 25px; background: #fffaef; box-shadow: 0 16px 40px #362a2208; }
.preview-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.preview-header img { width: 106px; height: auto; }
.preview-header span { font-size: 11px; color: var(--secondary); }
.preview-orb { display: block; width: 150px; height: 150px; margin: 16px auto 6px; object-fit: contain; }
.preview-caption { min-height: 126px; }
.target-caption { margin: 10px 0 13px; text-align: center; font-size: 23px; line-height: 1.4; letter-spacing: -.5px; }
.meaning-caption { margin: 0 0 15px; text-align: center; font-size: 13px; color: var(--secondary); line-height: 1.6; }
.user-caption { margin: 0 0 10px; text-align: center; font-size: 11px; color: var(--secondary); line-height: 1.5; }
.user-caption span { font-weight: 600; margin-right: 5px; }
.preview-actions { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.preview-actions button { font-size: 12px; border-radius: 100px; min-height: 44px; padding: 10px 15px; border: 0; }
.meaning-toggle { background: #f5e7c3; }
.meaning-toggle[aria-pressed="false"] { background: #f1e8df; }
.example-button { background: var(--orange); }
.lookup-word { padding: 0; border: 0; border-bottom: 2px solid #e99865; background: transparent; }
.preview-note { margin: 20px 0 0; font-size: 11px; line-height: 1.6; color: var(--secondary); }
.word-preview h4 { margin: 32px 0 8px; font-size: 28px; font-weight: 600; letter-spacing: -1px; }
.words-subtitle { margin: 0 0 22px; font-size: 13px; line-height: 1.6; color: var(--secondary); }
.saved-word { padding: 15px 0; border-bottom: 1px solid var(--line); }
.saved-word summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.saved-word summary::after { content: '+'; font-size: 20px; color: var(--secondary); }
.saved-word[open] summary::after { content: '−'; }
.saved-word strong, .saved-word summary span span { display: block; }
.saved-word strong { font-size: 21px; font-weight: 500; letter-spacing: -.5px; margin-bottom: 6px; }
.saved-word summary span span { font-size: 12px; color: var(--secondary); }
.saved-word p { margin: 14px 0 0; font-size: 13px; line-height: 1.7; color: var(--secondary); }
.meaning-dialog { max-width: 430px; width: calc(100% - 40px); padding: 26px; border: 1px solid #e3d3c2; border-radius: 24px; background: var(--cream); color: var(--ink); }
.meaning-dialog::backdrop { background: #362a224d; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; font-size: 12px; color: var(--secondary); }
.dialog-header button { border: 0; background: transparent; padding: 10px; }
.meaning-dialog p { font-size: 15px; line-height: 1.7; }
.lookup-context { color: var(--secondary); }
.language-list { margin: 35px 0 0; max-width: 850px; font-size: 12px; line-height: 2; color: var(--secondary); }
.language-list span { margin-right: 15px; font-weight: 600; color: var(--ink); }
.download-section { background: #f8eddf; scroll-margin-top: 0; }
.download-content { padding-block: 34px; display: flex; align-items: center; gap: 22px; }
.app-icon { flex-shrink: 0; border-radius: 17px; border: 1px solid #e9d7c5; }
.download-copy h2 { font-size: 24px; }
.download-copy p { font-size: 13px; color: var(--secondary); margin: 9px 0 0; line-height: 1.6; }
.back-to-download { margin-left: auto; display: inline-flex; align-items: center; gap: 35px; min-height: 48px; font-size: 14px; font-weight: 600; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding-block: 27px; font-size: 11px; color: var(--secondary); }
@media (min-width: 1024px) { .hero-art { animation: appear 700ms ease both; } .hero-copy { animation: appear 500ms ease both; } }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1023px) {
  .wrap { width: calc(100% - 64px); }
  .site-header { height: 80px; }
  .hero { gap: 15px; padding-block: 44px 62px; }
  h1 { font-size: 44px; letter-spacing: -2.2px; }
  .download-button { min-width: 152px; padding-inline: 13px; gap: 8px; }
  .greeting { font-size: 19px; padding: 10px 18px; }
  .scene-panel { gap: 30px; }
  .scene-story h3 { font-size: 30px; }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { height: 76px; }
  .brand img { width: 108px; }
  nav { gap: 16px; font-size: 12px; }
  .how-link { display: none; }
  .nav-cta { padding: 10px 32px; }
  .nav-cta-arrow { right: 16px; }
  .hero { grid-template-columns: 1fr; padding-block: 31px 35px; gap: 24px; }
  .hero-copy { text-align: center; }
  .eyebrow { margin-bottom: 19px; font-size: 11px; }
  h1 { font-size: clamp(35px, 9.2vw, 58px); letter-spacing: -1.9px; }
  .hero-description { margin: 20px auto 26px; max-width: 315px; font-size: 15px; line-height: 1.7; }
  .downloads { justify-content: center; gap: 10px; }
  .download-button { flex: 1; max-width: 185px; min-width: 140px; min-height: 64px; text-align: left; }
  .download-label { font-size: 14px; }
  .hero-art { width: min(340px, 100%); justify-self: center; }
  .greeting { font-size: 20px; }
  figcaption { bottom: -4px; font-size: 11px; }
  .how-section { padding-block: 32px; }
  h2 { font-size: 25px; letter-spacing: -.8px; }
  .experience-intro { font-size: 14px; }
  .scene-tabs { gap: 22px; width: 100%; }
  .scene-tabs button { padding: 10px 0; font-size: 13px; }
  .scene-panel { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
  .scene-story { max-width: 100%; }
  .scene-story h3 { font-size: 29px; margin-bottom: 12px; }
  .scene-story p { font-size: 14px; margin-block: 10px; }
  .scene-story .scene-hint { margin-top: 12px; font-size: 12px; }
  .topic-list button { min-height: 44px; font-size: 13px; }
  .preview-shell { min-height: 455px; padding: 22px; }
  .preview-note { text-align: center; font-size: 10px; }
  .target-caption { font-size: 22px; }
  .language-list { margin-top: 26px; }
  .language-list span { display: block; margin: 0 0 4px; }
  .download-content { flex-wrap: wrap; gap: 16px; padding-block: 26px; }
  .app-icon { width: 52px; height: 52px; border-radius: 14px; }
  .download-copy { flex: 1; }
  .download-copy h2 { font-size: 20px; }
  .download-copy p { font-size: 12px; }
  .back-to-download { margin-left: 68px; min-height: 34px; gap: 20px; font-size: 13px; }
  .site-footer { font-size: 10px; padding-block: 22px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art, .hero-copy { animation: none; }
  .download-button { transition: none; }
  .download-button:hover { transform: none; }
}

.content-page { max-width: 840px; margin: 0 auto; padding: 64px 28px; }
.content-page h1 { font-size: clamp(34px, 5vw, 54px); margin: 56px 0 28px; }
.content-page p { font-size: 19px; line-height: 1.7; color: var(--secondary); margin-bottom: 28px; }
.content-page .download-buttons { margin: 36px 0; }
.recharge-page form { display: grid; gap: 12px; margin: 28px 0; max-width: 440px; }
.recharge-page [hidden] { display: none; }
.recharge-page input { padding: 14px; border: 1px solid #ddcdbf; border-radius: 12px; background: transparent; font: inherit; }
.recharge-page button { padding: 14px 22px; background: #ff8a4c; border: none; border-radius: 12px; font: inherit; cursor: pointer; }
.recharge-page button:disabled { opacity: .6; cursor: wait; }
#recharge-status { padding: 22px; background: #f6eadc; border-radius: 14px; line-height: 1.6; }
#products > div { padding: 22px 0; border-bottom: 1px solid #ddcdbf; }

.footer-help { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-help a { padding-block: 8px; text-decoration: underline; text-underline-offset: 3px; }

.homepage-sign-in{font:inherit;font-weight:700;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.login-dialog{width:min(440px,calc(100% - 40px));padding:32px;border:1px solid #e8d9ca;border-radius:24px;background:#fff8ef;color:#372c23;box-shadow:0 24px 80px #372c2326}
.login-dialog::backdrop{background:#372c2355;backdrop-filter:blur(5px)}
.login-dialog h2{font-size:28px;line-height:1.2;margin:30px 0 14px}
.login-dialog p{font-size:16px;line-height:1.6;color:#7b6655}
.login-dialog .dialog-header{display:flex;align-items:center;justify-content:space-between}
.login-dialog .dialog-header button{font:inherit;font-size:28px;border:0;background:none;cursor:pointer}
.login-dialog .google-signin{display:flex;justify-content:center;margin:28px 0}
.login-dialog #login-error{color:#b84a29}.login-dialog #retry-login{font:inherit;border:1px solid #dbcbbb;border-radius:12px;background:transparent;padding:10px 18px;cursor:pointer}

.login-dialog{max-height:calc(100dvh - 32px);overflow-y:auto;box-sizing:border-box}
.login-divider{text-align:center;font-size:13px;color:#7b6655;margin:18px 0}
.email-auth{display:grid;gap:14px}.email-field{display:grid;gap:7px;font-size:15px;font-weight:700}
.email-field input{box-sizing:border-box;width:100%;padding:12px 14px;border:1px solid #dbcbbb;border-radius:12px;background:#fffdf9;color:#372c23;font:inherit;font-weight:400}
.email-auth .primary-button{width:100%;padding:14px 18px;background:#ff8745;color:#372c23;border:0;border-radius:12px;font:inherit;font-weight:700;cursor:pointer}
.email-auth .text-button{background:none;border:0;color:inherit;font:inherit;cursor:pointer;padding:8px 0}
.email-auth .email-error{color:#b84a29}.email-auth p{margin:0;font-size:13px}.email-auth button:disabled{opacity:.6;cursor:wait}
.login-dialog .login-agreement{font-size:12px;margin:18px 0 0}.login-agreement a{color:inherit}

/* Keep sign-in preparation and errors beside the Google action. */
.google-auth{margin:20px 0 0}.google-button-slot{position:relative;min-height:44px;display:grid;place-items:center;width:100%}
.google-auth .google-signin{display:flex;justify-content:center;margin:0;width:100%;max-width:100%;overflow:hidden}
.google-auth [hidden],.email-auth [hidden]{display:none!important}
.google-auth .google-loading{position:absolute;inset:0;display:grid;place-items:center;margin:0;font-size:14px;line-height:1.4;border:1px solid #dbcbbb;border-radius:24px;color:#7b6655}
.google-auth .google-retry{width:100%;min-height:44px;margin:0;padding:10px 18px;border:1px solid #dbcbbb;border-radius:24px;background:transparent;color:inherit;font:inherit;font-size:14px;cursor:pointer}
.google-auth .google-error{margin:8px 0 0;color:#b84a29;font-size:12px;line-height:1.5}
.login-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:#7b6655;font-size:12px;line-height:1.5}
.login-divider::before,.login-divider::after{content:"";flex:1;height:1px;background:#eaded0}
.email-auth .email-submit{min-height:46px;margin:2px 0 0;padding:12px 16px}
.email-switch{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;column-gap:6px;row-gap:0;font-size:13px;line-height:1.5}
.email-auth .email-mode{font-size:13px;min-height:36px;margin:0;padding:6px 0;font-weight:700;text-decoration:underline;text-underline-offset:3px}

.login-dialog{width:min(440px,calc(100vw - 32px));padding:26px}
.login-dialog .dialog-header button{width:44px;height:44px;padding:0;border-radius:50%}
.login-dialog h2{font-size:25px;margin:20px 0 10px}.login-dialog>p:not(.login-agreement){font-size:14px;margin:0}
.login-dialog .login-agreement{text-align:center;font-size:12px;line-height:1.6;margin:16px 0 0;text-wrap:balance}
@media(max-width:600px){.login-dialog{padding:20px}.login-dialog h2{font-size:23px}.login-dialog .email-field{font-size:14px}}

.email-recovery-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.email-auth .email-recovery-actions .text-button{font-size:12px;color:#7b6655;min-height:36px;padding:4px 0;text-decoration:underline;text-underline-offset:3px}.email-auth .email-code input{letter-spacing:.25em;font-variant-numeric:tabular-nums}.email-auth .email-success{color:#466640;background:#ebf0df;border-radius:10px;padding:10px 12px}.email-auth .email-recovery-actions [hidden]{display:none!important}
