@import "tailwindcss";

:root {
  --navy: #23483b;
  --navy-2: #315b4c;
  --cream: #f8f1e5;
  --paper: #fffaf2;
  --gold: #c3a15b;
  --gold-soft: #ead7aa;
  --ink: #25251f;
  --muted: #756e62;
  --green: #466b5a;
  --terracotta: #b66c50;
  --line: #e2d7c6;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
html { background: #e6ded0; }
body { margin: 0; background: #e6ded0; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button { font: inherit; }
button:focus-visible { outline: 3px solid #e8b849; outline-offset: 2px; }

.app-shell {
  width: 100%;
  max-width: 760px;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--cream);
  position: relative;
  box-shadow: 0 0 50px rgba(27, 27, 24, .09);
  padding-bottom: 104px;
}

.topbar {
  height: 76px;
  padding: 12px 20px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(220, 174, 71, .55);
  position: sticky;
  top: 0;
  z-index: 20;
}
.wordmark { border: 0; background: transparent; color: white; display: flex; align-items: center; gap: 11px; padding: 0; text-align: left; cursor: pointer; }
.wordmark .mark { width: 42px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; }
.wordmark .mark img { width: 38px; height: 38px; object-fit: contain; filter: sepia(.35) saturate(1.2); }
.wordmark strong { display: block; font: 20px Georgia, serif; letter-spacing: .2px; }
.wordmark small { display: block; color: #bfc7d0; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.profile-button { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); padding: 0; cursor: pointer; background: var(--gold-soft); }
.profile-button img { width: 100%; height: 100%; object-fit: cover; }
.offline-strip { padding: 7px 20px; background: #e8efe8; color: #355347; display: flex; gap: 7px; align-items: center; font-size: 12px; letter-spacing: .02em; }
.offline-strip span { font-weight: 700; }
.offline-strip button { border: 0; background: transparent; color: inherit; text-decoration: underline; margin-left: auto; cursor: pointer; }

.screen { padding: 26px 20px 10px; }
.page { display: none; }
.page.active { display: block; }
.intro { padding: 6px 2px 24px; }
.intro.compact { padding-bottom: 22px; }
.eyebrow { color: #8a6d2d; letter-spacing: .16em; text-transform: uppercase; font-size: 10px; font-weight: 800; margin: 0 0 8px; }
h1, h2, h3, p { margin-top: 0; }
.intro h1 { font: 43px/1.02 Georgia, "Times New Roman", serif; color: var(--navy); letter-spacing: -.035em; margin: 0 0 14px; }
.intro.compact h1 { font-size: 39px; }
.intro h1 em { color: #b98831; font-weight: 400; }
.intro > p:last-child { color: var(--muted); font: 16px/1.5 Georgia, serif; max-width: 520px; margin-bottom: 0; }

.home-page { padding-top: 0; }
.home-hero { margin: 0 -20px; padding: 38px 22px 32px; background: linear-gradient(145deg, var(--navy) 0%, #386655 100%); color: white; border-bottom: 3px solid var(--terracotta); }
.home-hero .eyebrow { color: var(--gold); }
.home-hero h1 { font: 43px/1.02 Georgia, "Times New Roman", serif; letter-spacing: -.035em; margin: 0 0 15px; }
.home-hero h1 em { color: #e5c789; font-weight: 400; }
.home-hero > p:not(.eyebrow) { color: #d5dde4; font: 16px/1.5 Georgia, serif; max-width: 540px; margin-bottom: 22px; }
.home-primary { width: auto; padding: 0 18px; min-height: 50px; }
.home-login { margin: 18px 0; }
.learning-path { margin-bottom: 18px; border: 1px solid var(--line); background: var(--paper); }
.learning-path > div { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.learning-path > div:last-child { border-bottom: 0; }
.learning-path b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; }
.learning-path strong, .learning-path small { display: block; }
.learning-path strong { color: var(--navy); font: 16px Georgia, serif; }
.learning-path small { color: var(--muted); margin-top: 3px; line-height: 1.35; }
.landing-mode .user-button,
.landing-mode .app-offline,
.landing-mode .bottom-nav { display: none; }
.landing-mode .screen { padding-bottom: 0; }
.landing-page { padding-bottom: 28px; }
.landing-hero { padding: 38px 0 26px; color: var(--ink); background: transparent; }
.landing-mode .topbar { position: static; height: auto; padding: 22px 0 8px; background: transparent; border: 0; justify-content: center; }
.landing-mode .wordmark { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,250,242,.82); color: var(--navy); }
.landing-mode .wordmark .mark { width: 28px; height: 28px; }
.landing-mode .wordmark .mark img { width: 27px; height: 27px; filter: brightness(0) saturate(100%); opacity: .82; }
.landing-mode .wordmark strong { font: 15px Arial, sans-serif; font-weight: 800; }
.landing-mode .wordmark small { display: none; }
.landing-jp-intro { width: 92%; margin: 20px auto 0; padding: 16px 18px; display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,250,242,.82); color: var(--ink); text-align: left; cursor: pointer; }
.landing-jp-intro img { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; }
.landing-jp-intro strong { display: block; color: var(--ink); font-size: 14px; }
.landing-jp-intro p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.landing-mode .landing-hero { max-width: 640px; margin: 0 auto; padding: 38px 18px 30px; text-align: center; }
.landing-mode .landing-hero h1 { font-size: clamp(46px, 8vw, 70px); line-height: .98; }
.landing-mode .landing-hero > p:not(.eyebrow) { margin-left: auto; margin-right: auto; font-family: Arial, sans-serif; font-size: 17px; line-height: 1.55; }
.landing-mode .landing-checks { justify-content: center; font-size: 12px; }
.landing-hero .eyebrow { color: #8a6d2d; }
.landing-hero h1 { margin: 0 0 16px; color: var(--navy); font: 44px/1.02 Georgia, serif; letter-spacing: -.04em; }
.landing-hero h1 em { color: #b28632; font-weight: 400; }
.landing-hero > p:not(.eyebrow) { max-width: 570px; color: var(--muted); font: 16px/1.5 Georgia, serif; }
.landing-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; color: #315347; font-size: 10px; font-weight: 800; }
.landing-signup, .lesson-preview, .landing-price { margin: 18px 0; padding: 20px; border: 1px solid var(--line); background: var(--paper); }
.landing-signup h2, .landing-benefits h2, .landing-price h2 { margin: 5px 0 9px; color: var(--navy); font: 28px/1.1 Georgia, serif; }
.landing-signup > p:not(.eyebrow), .landing-price > p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.landing-signup label { display: block; margin-top: 15px; color: #665f54; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.landing-signup input { width: 100%; min-height: 50px; margin: 7px 0 10px; padding: 0 12px; border: 1px solid #cfc3b2; background: white; font-size: 16px; }
.landing-signup .primary { min-height: 50px; }
.landing-signup > small { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; text-align: center; }
.lesson-preview > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.lesson-preview > div:first-child span { color: var(--muted); font-size: 10px; }
.lesson-preview h2 { margin: 16px 0 4px; color: var(--navy); font: 42px Georgia, serif; }
.lesson-preview > p { color: var(--muted); }
.preview-actions { display: flex; gap: 8px; margin: 16px 0; }
.preview-actions button { min-height: 44px; padding: 0 16px; border: 1px solid var(--navy); background: var(--navy); color: white; font-weight: 800; }
.preview-actions button:last-child { background: transparent; color: var(--navy); }
.preview-tip { padding: 12px; border-left: 3px solid var(--gold); background: #eef1e9; }
.preview-tip small { color: #8a6d2d; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.preview-tip p { margin: 5px 0 0; color: #55665f; font-size: 11px; line-height: 1.45; }
.landing-benefits { padding: 20px 0; }
.landing-benefits > div { display: grid; gap: 10px; }
.landing-benefits article { padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.landing-benefits article b { float: left; width: 28px; height: 28px; margin-right: 10px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; }
.landing-benefits article strong { display: block; color: var(--navy); font: 17px Georgia, serif; }
.landing-benefits article p { margin: 7px 0 0 38px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.landing-jp { width: 100%; padding: 0; display: grid; grid-template-columns: 110px 1fr; overflow: hidden; border: 0; background: #efe6d6; color: var(--ink); text-align: left; }
.landing-jp img { width: 110px; height: 100%; min-height: 190px; object-fit: cover; }
.landing-jp span { padding: 17px; }
.landing-jp small { color: #8a6d2d; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.landing-jp strong { display: block; margin: 8px 0; color: var(--navy); font: 17px/1.25 Georgia, serif; }
.landing-jp p { color: #655f55; font-size: 11px; line-height: 1.45; }
.landing-jp em { color: #7f6b43; font-size: 9px; font-style: normal; }
.landing-price { text-align: center; }
.home-status { margin: 17px 0; padding: 12px 14px; background: #e8efe8; color: #315347; display: flex; align-items: center; gap: 11px; border: 1px solid #d2dfd5; border-radius: 4px; }
.home-status-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: #dbe8de; font-weight: 800; flex: 0 0 auto; }
.home-status strong, .home-status small { display: block; }
.home-status strong { font-size: 12px; }
.home-status small { color: #66766f; font-size: 9px; line-height: 1.4; margin-top: 3px; }
.home-continue { min-height: 112px; }
.home-paths { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.home-paths > button { width: 100%; min-height: 76px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; text-align: left; cursor: pointer; }
.home-paths > button:last-child { border-bottom: 0; }
.home-path-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #f1eadc; color: #9a742c; font-size: 18px; }
.home-paths strong, .home-paths small { display: block; }
.home-paths strong { color: var(--navy); font: 17px Georgia, serif; }
.home-paths small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.home-paths em { color: #9a762f; font-style: normal; }
.home-jp { margin-top: 17px; width: 100%; border: 0; background: #efe6d6; color: var(--ink); padding: 0; display: grid; grid-template-columns: 82px 1fr; text-align: left; cursor: pointer; border-radius: 4px; overflow: hidden; }
.home-jp img { width: 82px; height: 112px; object-fit: cover; }
.home-jp > span { padding: 13px; display: flex; flex-direction: column; justify-content: center; }
.home-jp small { color: #8a6d2d; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.home-jp strong { color: var(--navy); font: 15px/1.3 Georgia, serif; margin: 7px 0; }
.home-jp em { color: #7f6b43; font-size: 9px; font-style: normal; }

.continue-card { width: 100%; min-height: 104px; background: var(--navy); color: white; border: 0; border-radius: 4px; padding: 21px; display: flex; justify-content: space-between; align-items: center; text-align: left; cursor: pointer; box-shadow: 0 10px 30px rgba(13,31,53,.14); }
.continue-card small, .continue-card strong, .continue-card em { display: block; }
.continue-card small { color: var(--gold); font-size: 10px; letter-spacing: .15em; font-weight: 800; margin-bottom: 8px; }
.continue-card strong { font: 21px Georgia, serif; }
.continue-card em { font-style: normal; color: #aeb9c6; font-size: 12px; margin-top: 5px; }
.round-arrow { width: 44px; height: 44px; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; border-radius: 50%; font-size: 20px; flex: 0 0 auto; }

.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 34px 2px 15px; }
.section-heading h2 { font: 25px Georgia, serif; color: var(--navy); margin: 0; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading > button { border: 0; background: transparent; color: #8a6d2d; text-decoration: underline; cursor: pointer; padding: 8px 0; }

.phrase-list { display: grid; gap: 13px; }
.phrase-card { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 17px; box-shadow: 0 4px 16px rgba(40,35,27,.035); }
.phrase-top { display: flex; justify-content: space-between; align-items: center; }
.language { background: #e4eee9; color: #36594c; padding: 5px 8px; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; border-radius: 2px; }
.language.bali { background: #f5e3dd; color: #8c4e38; }
.save { border: 0; background: transparent; color: #80786b; font-size: 26px; cursor: pointer; padding: 0 4px; line-height: 1; }
.save.active { color: var(--terracotta); }
.phrase-card h3 { color: var(--navy); font: 29px Georgia, serif; margin: 13px 0 10px; }
.reveal { border: 0; border-bottom: 1px dashed #aa9d89; background: transparent; padding: 0 0 3px; color: #7d7468; cursor: pointer; font-size: 13px; }
.meaning { border-left: 2px solid var(--gold); padding-left: 10px; min-height: 42px; }
.meaning strong, .meaning span { display: block; }
.meaning strong { font: 16px Georgia, serif; color: #3a382f; }
.meaning span { color: #857f75; margin-top: 5px; font-size: 11px; }
.phrase-actions { display: flex; gap: 8px; margin-top: 17px; flex-wrap: wrap; }
.phrase-culture-tip { margin-top: 12px; padding: 11px 12px; border-left: 3px solid var(--gold); background: #eef1e9; }
.phrase-culture-tip small { color: #8a6d2d; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.phrase-culture-tip p { margin: 5px 0 0; color: #55665f; font-size: 11px; line-height: 1.45; }
.phrase-actions button { min-height: 39px; border-radius: 3px; cursor: pointer; }
.audio { border: 1px solid var(--navy); color: var(--navy); background: white; padding: 0 12px; font-size: 12px; font-weight: 700; }
.audio span { font-size: 9px; margin-right: 3px; }
.audio.slow { border-color: #a49b8b; color: #625d55; }
.known { margin-left: auto; padding: 0 11px; border: 0; background: #f0ede6; color: #6d675d; font-size: 11px; }
.known.active { background: #e5efe8; color: #315346; }

.featured-situation { min-height: 275px; background: linear-gradient(180deg, rgba(13,31,53,.05), rgba(13,31,53,.86)), url("https://startingoverinbali.com/wp-content/uploads/2026/05/jalan-sri-wedari-ubud-nyepi-empty-street-2.jpg") center/cover; border-radius: 4px; display: flex; align-items: end; cursor: pointer; box-shadow: 0 10px 24px rgba(13,31,53,.14); }
.photo-overlay { color: white; padding: 22px; width: 100%; }
.photo-overlay h2 { font: 30px Georgia, serif; margin: 12px 0 4px; }
.photo-overlay p { font-size: 12px; color: #d4dce4; margin-bottom: 17px; }
.photo-overlay button { background: var(--gold); color: var(--navy); border: 0; padding: 12px 16px; font-weight: 800; border-radius: 2px; cursor: pointer; }
.situation-list { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.situation-row { border: 0; border-bottom: 1px solid var(--line); background: transparent; width: 100%; min-height: 88px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; text-align: left; gap: 12px; padding: 13px 16px; cursor: pointer; color: var(--ink); }
.situation-row:last-child { border-bottom: 0; }
.situation-icon { width: 42px; height: 42px; display: grid; place-items: center; background: #f1eadc; color: #99742d; border-radius: 50%; font-size: 20px; }
.situation-row strong, .situation-row small { display: block; }
.situation-row strong { color: var(--navy); font: 18px Georgia, serif; margin-bottom: 5px; }
.situation-row small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.situation-row em { color: #897f70; font-style: normal; font-size: 11px; }

.jp-card { width: 100%; padding: 0; border: 0; background: var(--navy); color: white; display: grid; grid-template-columns: 110px 1fr; text-align: left; cursor: pointer; border-radius: 4px; overflow: hidden; }
.jp-card img { width: 110px; height: 150px; object-fit: cover; }
.jp-card > span { padding: 17px; display: flex; flex-direction: column; justify-content: center; }
.jp-card small { color: var(--gold); font-size: 9px; letter-spacing: .14em; font-weight: 800; }
.jp-card strong { font: 19px/1.35 Georgia, serif; margin: 9px 0; }
.jp-card em { color: #c7d0da; font-style: normal; font-size: 11px; }
.etiquette-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.etiquette-card { min-height: 210px; padding: 16px; border: 1px solid var(--line); background: var(--paper); text-align: left; display: flex; flex-direction: column; color: var(--ink); cursor: pointer; border-radius: 4px; position: relative; }
.tip-number { position: absolute; right: 13px; top: 10px; color: #e2d8c8; font: 27px Georgia, serif; }
.etiquette-card small { color: #8a6d2d; text-transform: uppercase; letter-spacing: .1em; font-size: 9px; font-weight: 800; margin-top: 25px; }
.etiquette-card strong { font: 19px/1.2 Georgia, serif; color: var(--navy); margin: 9px 0; }
.etiquette-card p { color: var(--muted); font-size: 11px; line-height: 1.45; }
.etiquette-card em { margin-top: auto; font-style: normal; color: #8a6d2d; font-size: 11px; }

.progress-card { background: var(--navy); color: white; border-radius: 4px; padding: 21px; display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: center; }
.progress-ring { width: 86px; height: 86px; border-radius: 50%; border: 7px solid #2f4761; border-top-color: var(--gold); display: grid; place-content: center; text-align: center; }
.progress-ring strong { color: white; font: 25px Georgia, serif; }
.progress-ring span { color: #aeb9c6; text-transform: uppercase; font-size: 8px; letter-spacing: .1em; }
.progress-card h2 { font: 23px Georgia, serif; margin: 0 0 5px; }
.progress-card > div:last-child > p:last-child { color: #b8c2cc; font-size: 11px; line-height: 1.45; margin: 0; }
.trip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.trip-grid button { min-height: 135px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; padding: 16px; color: var(--ink); }
.trip-grid span { color: #9f772b; font-size: 20px; }
.trip-grid strong { font: 28px Georgia, serif; color: var(--navy); margin-top: auto; }
.trip-grid small { color: var(--muted); margin-top: 3px; }
.download-card, .account-row { background: #edf1e8; border: 1px solid #d8e0d3; width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; border-radius: 4px; color: #29473d; }
.download-card strong, .download-card small, .account-row strong, .account-row small { display: block; }
.download-card small, .account-row small { color: #66766f; font-size: 10px; margin-top: 4px; }
.download-card button { margin-left: auto; border: 0; background: transparent; color: inherit; text-decoration: underline; cursor: pointer; }
.download-icon { width: 35px; height: 35px; background: #d9e7dc; border-radius: 50%; display: grid; place-items: center; }
.account-row { margin-top: 12px; background: var(--paper); border-color: var(--line); color: var(--navy); cursor: pointer; }
.account-row img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.account-row em { margin-left: auto; font-style: normal; color: #9a762f; }

.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 760px; height: 84px; padding: 8px 8px max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,253,248,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 25px rgba(13,31,53,.06); backdrop-filter: blur(12px); }
.bottom-nav button { border: 0; background: transparent; color: #777167; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; min-width: 0; }
.bottom-nav button span { font-size: 20px; line-height: 1; }
.bottom-nav button small { font-size: 10px; font-weight: 700; white-space: nowrap; }
.bottom-nav button.active { color: var(--navy); }
.bottom-nav button.active span { color: #b28632; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; background: rgba(7,18,30,.62); display: flex; align-items: end; justify-content: center; }
.account-sheet, .lesson-sheet { width: 100%; max-width: 760px; max-height: 93svh; overflow-y: auto; background: var(--cream); border-radius: 16px 16px 0 0; padding: 14px 20px 30px; position: relative; animation: rise .25s ease-out; }
@keyframes rise { from { transform: translateY(25px); opacity: .5; } }
.sheet-handle { height: 4px; width: 42px; border-radius: 4px; background: #c8c0b3; margin: 0 auto 16px; }
.close { position: absolute; right: 16px; top: 24px; border: 0; background: #ebe4d8; width: 36px; height: 36px; border-radius: 50%; font-size: 25px; line-height: 1; cursor: pointer; color: var(--navy); }
.account-intro { display: grid; grid-template-columns: 95px 1fr; gap: 16px; padding-right: 35px; align-items: center; }
.account-intro img { width: 95px; height: 112px; object-fit: cover; }
.account-intro h2 { color: var(--navy); font: 28px Georgia, serif; margin: 0 0 7px; }
.account-intro p:last-child { color: var(--muted); font: 13px/1.45 Georgia, serif; }
.access-card { background: var(--navy); color: white; margin: 20px 0 13px; padding: 17px; display: grid; grid-template-columns: 1fr auto; gap: 5px; border-radius: 4px; }
.access-card span { color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; font-weight: 800; }
.access-card strong { grid-column: 1; font: 20px Georgia, serif; }
.access-card button { grid-column: 2; grid-row: 1 / 3; border: 1px solid #607086; background: transparent; color: white; border-radius: 2px; cursor: pointer; padding: 0 12px; font-size: 10px; }
.account-menu { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.account-menu button { width: 100%; min-height: 66px; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; text-align: left; padding: 10px 14px; color: var(--ink); cursor: pointer; }
.account-menu button:last-child { border-bottom: 0; }
.account-menu button > span { color: #98742e; font-size: 18px; }
.account-menu strong, .account-menu small { display: block; }
.account-menu strong { color: var(--navy); font-size: 13px; }
.account-menu small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.account-menu em { font-style: normal; color: #9a762f; }
.legal { text-align: center; color: #867e72; font-size: 10px; margin: 18px 0 0; }

.modal-backdrop.detail { align-items: stretch; background: rgba(7,18,30,.72); }
.lesson-sheet { border-radius: 0; max-height: 100svh; padding-top: 24px; }
.back { border: 0; background: transparent; color: #80672e; padding: 8px 0 24px; cursor: pointer; }
.lesson-sheet h2 { font: 38px/1.05 Georgia, serif; color: var(--navy); margin: 0 0 12px; }
.lesson-sheet .lead { color: var(--muted); font: 16px/1.55 Georgia, serif; }
.dialogue { background: var(--navy); color: white; padding: 24px 20px; margin: 25px 0 12px; }
.dialogue small, .reply small, .reality small { color: var(--gold); font-size: 9px; letter-spacing: .14em; font-weight: 800; }
.dialogue h3 { font: 27px Georgia, serif; margin: 12px 0 7px; }
.dialogue p { color: #bdc7d1; font: 14px Georgia, serif; }
.dialogue button { border: 1px solid #758396; background: transparent; color: white; min-height: 42px; padding: 0 15px; margin-right: 7px; cursor: pointer; }
.reply { background: var(--paper); border: 1px solid var(--line); padding: 19px; }
.reply strong { display: block; font: 19px/1.35 Georgia, serif; color: var(--navy); margin: 10px 0 6px; }
.reply p { color: var(--muted); font-size: 12px; }
.reality { border-left: 3px solid var(--gold); padding: 4px 0 4px 15px; margin: 23px 0; }
.reality p { font: 14px/1.55 Georgia, serif; color: #4e4a42; margin: 8px 0 0; }
.primary { width: 100%; min-height: 52px; border: 0; background: var(--gold); color: var(--navy); font-weight: 800; cursor: pointer; border-radius: 2px; }
.tip-sheet h3 { color: var(--navy); font: 25px Georgia, serif; margin: 22px 0 8px; }
.tip-sheet > p:not(.lead):not(.eyebrow) { color: var(--muted); line-height: 1.6; font-size: 14px; }
.illustration { height: 180px; background: linear-gradient(145deg, #d9ccb5, #efe5d2); display: grid; place-items: center; margin: 22px 0; color: #9f7629; font-size: 56px; }
.verified { color: #44655a; background: #e8efe8; padding: 12px; font-size: 10px; margin: 0 0 15px; }

@media (min-width: 680px) {
  .screen { padding: 38px 48px 22px; }
  .topbar { padding-left: 48px; padding-right: 48px; }
  .offline-strip { padding-left: 48px; padding-right: 48px; }
  .phrase-list { grid-template-columns: 1fr 1fr; }
  .phrase-card { min-height: 235px; display: flex; flex-direction: column; }
  .phrase-actions { margin-top: auto; }
  .known { margin-left: 0; }
  .etiquette-grid { grid-template-columns: repeat(2, 1fr); }
  .account-sheet, .lesson-sheet { padding-left: 48px; padding-right: 48px; }
  .home-hero { margin-left: -48px; margin-right: -48px; padding-left: 50px; padding-right: 50px; }
}

@media (max-width: 390px) {
  .wordmark strong { font-size: 18px; }
  .screen { padding-left: 15px; padding-right: 15px; }
  .intro h1 { font-size: 38px; }
  .etiquette-grid { grid-template-columns: 1fr; }
  .jp-card { grid-template-columns: 90px 1fr; }
  .jp-card img { width: 90px; height: 160px; }
  .bottom-nav button small { font-size: 9px; }
}

/* Functional V1 additions */
.full-app .screen { min-height: calc(100svh - 194px); }
.full-app .screen.route-home { padding-top: 0; }
.user-button {
  width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%;
  background: #f4ead8; color: var(--navy); font-weight: 800; cursor: pointer;
  display: grid; place-items: center;
}
.app-offline { width: 100%; border: 0; cursor: pointer; text-align: left; }
.app-offline em { margin-left: auto; font-style: normal; text-decoration: underline; }
.modal-open { overflow: hidden; }
.modal-visible { animation: fadeIn .15s ease-out; }
@keyframes fadeIn { from { opacity: 0; } }

.draft-badge {
  display: block; margin-top: 12px; color: #7e7160; font-size: 8px;
  letter-spacing: .06em; text-transform: uppercase;
}
.phrase-category { margin: 12px 0 -4px; color: #8a7c68; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.search-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
}
.search-box span { color: #8a6d2d; font-size: 21px; }
.search-box input {
  border: 0; background: transparent; width: 100%; color: var(--ink); font-size: 16px; outline: 0;
}
.search-box input::placeholder { color: #918a7f; }
.etiquette-search { margin-top: 16px; }
.chip-row {
  display: flex; gap: 8px; overflow-x: auto; margin: 13px -20px 0; padding: 0 20px 8px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-row button {
  border: 1px solid #cfc3b2; color: #625d55; background: var(--paper); border-radius: 20px;
  min-height: 38px; padding: 0 14px; white-space: nowrap; cursor: pointer; font-size: 12px;
}
.chip-row button.active { background: var(--navy); color: white; border-color: var(--navy); }
.content-count { color: var(--muted); margin: 13px 2px; font-size: 11px; }
.content-count strong { color: var(--navy); font-size: 14px; }
.content-count span { margin: 0 5px; color: #b5aa9a; }
.full-phrase-list { margin-top: 0; }
.full-phrase-list .phrase-card { scroll-margin-top: 120px; }
.main-audio { background: var(--navy); color: white; }
.known { margin-left: 0; }
.known:not(.active) { background: #eee6d8; color: #5f594e; }
.editorial-note {
  background: #eee4d4; border-left: 3px solid var(--terracotta); padding: 16px; margin-bottom: 10px;
}
.editorial-note span { color: #8a603f; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.editorial-note p { margin: 8px 0 0; color: #4d4941; font: 14px/1.5 Georgia, serif; }
.full-situation-list { background: transparent; border: 0; display: grid; gap: 10px; }
.full-situation-list .situation-row {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  min-height: 108px; grid-template-columns: 46px 1fr 44px;
}
.full-situation-list .situation-row > span:nth-child(2) > small {
  color: #8a6d2d; text-transform: uppercase; letter-spacing: .08em; font-size: 8px; margin-bottom: 5px;
}
.full-situation-list .situation-row > span:nth-child(2) > span {
  color: var(--muted); font-size: 10px; line-height: 1.35; display: block; margin-top: 5px;
}
.full-situation-list .situation-row em { text-align: right; }
.full-situation-list .situation-row em b { display: block; font-size: 18px; color: #9a762f; margin-top: 8px; }
.full-etiquette-grid { grid-template-columns: 1fr; }
.full-etiquette-grid .etiquette-card { min-height: 180px; }
.progress-ring {
  border: 0;
  background: conic-gradient(var(--gold) var(--progress), #466657 0);
  position: relative;
}
.progress-ring::before {
  content: ""; position: absolute; inset: 7px; background: var(--navy); border-radius: 50%;
}
.progress-ring strong, .progress-ring span { position: relative; z-index: 1; }
.progress-grid button strong { font-size: 22px; }
.saved-tip-list { background: var(--paper); border: 1px solid var(--line); margin: 14px 0; }
.saved-tip-list button {
  width: 100%; min-height: 72px; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; text-align: left; padding: 12px; cursor: pointer;
}
.saved-tip-list button:last-child { border-bottom: 0; }
.saved-tip-list button > span:first-child, .saved-tip-list em { color: #98742e; font-style: normal; }
.saved-tip-list strong, .saved-tip-list small { display: block; }
.saved-tip-list strong { color: var(--navy); font: 16px Georgia, serif; }
.saved-tip-list small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.empty-state { background: var(--paper); border: 1px dashed #cdbfa9; padding: 25px; text-align: center; margin: 14px 0; }
.empty-state strong { color: var(--navy); font: 20px Georgia, serif; }
.empty-state p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 8px 0 14px; }
.empty-state button { border: 0; background: transparent; color: #82652c; text-decoration: underline; cursor: pointer; }
.user-mini {
  width: 42px; height: 42px; border-radius: 50%; background: #efe5d3; color: var(--navy);
  display: grid; place-items: center; font-weight: 800;
}
.account-row > .user-mini + span { flex: 1; }
.situation-dialogue strong { display: block; font: 25px/1.25 Georgia, serif; margin: 10px 0 8px; }
.reply.situation-dialogue strong { color: var(--navy); font-size: 20px; }
.situation-dialogue .line-meaning {
  border: 0; border-bottom: 1px dashed currentColor; padding: 0 0 3px; margin-bottom: 9px;
  background: transparent; color: inherit; cursor: pointer; font-size: 11px;
}
.situation-dialogue > p { margin-bottom: 12px; }
.situation-dialogue > div button {
  border: 1px solid currentColor; background: transparent; color: inherit; min-height: 40px; padding: 0 13px; margin-right: 6px; cursor: pointer;
}
.etiquette-context { background: #e5eee7; color: #315347; padding: 16px; margin: 16px 0; }
.etiquette-context small { font-size: 9px; letter-spacing: .12em; font-weight: 800; }
.etiquette-context p { font: 14px/1.5 Georgia, serif; margin: 8px 0 0; }
.lesson-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 18px; }
.lesson-heading .eyebrow { margin: 0; }
.lesson-heading > strong { color: var(--muted); font-size: 13px; white-space: nowrap; }
.lesson-progress-bar { height: 6px; margin: 12px 0 22px; overflow: hidden; border-radius: 99px; background: #dfd6c8; }
.lesson-progress-bar span { display: block; height: 100%; background: var(--gold); transition: width .25s ease; }
.situation-intro { margin-bottom: 18px; }
.guided-turn { padding: 22px 18px; border: 1px solid var(--line); border-radius: 10px; }
.guided-turn.your-turn { background: #fffaf2; border-left: 5px solid var(--gold); }
.guided-turn.their-turn { background: #e8efe8; border-left: 5px solid var(--green); }
.guided-turn > small { color: #52675e; font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.guided-turn h2 { margin: 13px 0 10px; color: var(--navy); font: 29px/1.18 Georgia, serif; }
.guided-turn > p { color: var(--muted); font-size: 16px; }
.guided-audio { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.guided-audio button { min-height: 44px; padding: 0 14px; border: 1px solid var(--navy); background: var(--navy); color: white; font-weight: 800; cursor: pointer; }
.guided-audio button:last-child { background: transparent; color: var(--navy); }
.guided-turn .meaning-toggle { margin-top: 12px; border: 0; background: transparent; color: var(--navy); text-decoration: underline; cursor: pointer; }
.say-privately { margin: 12px 0; color: var(--muted); font-size: 14px; text-align: center; }
.lesson-controls { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 22px; }
.lesson-controls button { min-height: 50px; border: 1px solid var(--line); background: var(--paper); color: var(--navy); font-weight: 800; cursor: pointer; }
.lesson-controls button.primary { background: var(--gold); border-color: var(--gold); }
.lesson-controls button:disabled { opacity: .45; cursor: default; }
.situation-complete { text-align: center; padding-top: 20px; }
.complete-mark { width: 62px; height: 62px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: #dce9df; color: #315347; font-size: 28px; font-weight: 900; }
.modal-primary { margin-top: 18px; }
.tip-body { margin: 22px 0; }
.tip-body p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.tip-body h3 { color: var(--navy); font: 24px/1.25 Georgia, serif; margin: 22px 0 10px; }
.about-jp > img { width: 118px; height: 140px; object-fit: cover; float: right; margin: 0 0 14px 16px; }
.about-jp > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.6; }
.review-note { clear: both; background: #eee7db; color: #6f6659 !important; padding: 12px; font-size: 10px !important; line-height: 1.45 !important; }
.magic-login { background: var(--paper); border: 1px solid var(--line); padding: 17px; margin: 12px 0; }
.magic-login h3 { color: var(--navy); font: 20px Georgia, serif; margin: 0 0 8px; }
.magic-login p { color: var(--muted); font-size: 11px; line-height: 1.45; }
.magic-login label { display: block; color: #665f54; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.magic-login input { width: 100%; min-height: 48px; border: 1px solid #cfc3b2; background: white; padding: 0 12px; margin: 7px 0 10px; font-size: 16px; }
.magic-login .primary { min-height: 48px; }
.legal button { border: 0; background: transparent; color: inherit; text-decoration: underline; cursor: pointer; }
.offline-checklist { background: var(--paper); border: 1px solid var(--line); margin: 20px 0; }
.offline-checklist > div { display: grid; grid-template-columns: 30px 1fr; gap: 5px 10px; padding: 13px; border-bottom: 1px solid var(--line); }
.offline-checklist > div:last-child { border-bottom: 0; }
.offline-checklist > div > span { color: #3f6657; grid-row: 1 / 3; }
.offline-checklist strong { color: var(--navy); font-size: 13px; }
.offline-checklist small { color: var(--muted); font-size: 10px; }
.toast {
  position: fixed; z-index: 100; left: 50%; bottom: 98px; transform: translate(-50%, 15px);
  width: calc(100% - 40px); max-width: 420px; padding: 13px 16px; border-radius: 3px;
  background: #1f352e; color: white; text-align: center; font-size: 12px;
  opacity: 0; pointer-events: none; transition: .2s ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 680px) {
  .chip-row { margin-left: -48px; margin-right: -48px; padding-left: 48px; padding-right: 48px; }
  .full-phrase-list { grid-template-columns: 1fr 1fr; }
  .full-etiquette-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 390px) {
  .bottom-nav button small { font-size: 8px; }
  .phrase-actions { gap: 6px; }
  .phrase-actions button { padding-left: 9px; padding-right: 9px; }
}

/* Readable type: avoid tiny interface text */
.eyebrow,
.draft-badge,
.phrase-category,
.language,
.content-count,
.landing-signup label,
.landing-signup > small,
.lesson-preview > div:first-child span,
.preview-tip small,
.phrase-culture-tip small,
.etiquette-context small,
.home-jp small,
.landing-jp small {
  font-size: 12px;
}
.bottom-nav button small { font-size: 12px; }
.wordmark small { font-size: 11px; }
.landing-jp-intro strong { font-size: 16px; }
.landing-jp-intro p { font-size: 14px; }
.landing-mode .landing-checks { font-size: 13px; }
.landing-signup > p:not(.eyebrow),
.landing-price > p,
.landing-benefits article p,
.preview-tip p,
.phrase-culture-tip p {
  font-size: 14px;
}
@media (max-width: 390px) {
  .bottom-nav button small { font-size: 11px; }
}
