:root {
  --paper: #fbf3e4;
  --paper-soft: #fff9ee;
  --paper-deep: #f0dfc6;
  --ink: #171412;
  --muted: #675c50;
  --line: rgba(92, 48, 34, 0.15);
  --primary: #ad2d26;
  --primary-dark: #872019;
  --primary-soft: #f3d5cc;
  --pro-column-gradient: linear-gradient(145deg, #bd342c 0%, #ad2d26 55%, #93231d 100%);
  --pro-column-line: rgba(255, 249, 238, 0.2);
  --jade: #4f806e;
  --gold: #c39b45;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(80, 38, 24, 0.15);
  --radius: 8px;
  font-family: "Nunito Sans", "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 249, 238, 0.92) 0%, rgba(251, 243, 228, 0.98) 44%, rgba(246, 232, 208, 0.9) 100%),
    var(--paper);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 0;
  background: rgba(251, 243, 228, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.phone-status,
.widget-topline,
.rollup-chart-head,
.rollup-chart-legend {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 19px;
  font-weight: 950;
}

.brand-mark {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(128, 32, 24, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

.nav-links {
  gap: 24px;
  color: rgba(23, 20, 18, 0.66);
  font-size: 14px;
  font-weight: 850;
}

.nav-links a,
.site-footer a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--primary);
}

.header-cta,
.secondary-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta {
  padding: 0 17px;
  border: 1px solid rgba(173, 45, 38, 0.24);
  background: rgba(173, 45, 38, 0.1);
  color: var(--primary-dark);
}

.primary-button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(173, 45, 38, 0.23);
}

.secondary-button {
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(92, 48, 34, 0.18);
  background: rgba(255, 249, 238, 0.88);
  color: var(--ink);
}

.header-cta:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.full-width {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(420px, 1.07fr);
  gap: 62px;
  align-items: center;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 76px;
}

.hero-copy {
  padding-top: 10px;
}

.hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-brand-lockup img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(128, 32, 24, 0.16);
}

.hero-brand-lockup span,
.hero-brand-lockup strong {
  display: block;
}

.hero-brand-lockup span {
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.hero-brand-lockup strong {
  margin-top: 6px;
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 900;
}

.hero h1,
.section-heading h2,
.legal-card h1 {
  margin: 0;
  font-family: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 690px;
  font-size: 84px;
}

.hero-copy p {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 184px;
  min-height: 62px;
  padding: 10px 18px;
  border: 1px solid #050505;
  border-radius: var(--radius);
  background: #050505;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(23, 20, 18, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-button svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.store-button span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-button small {
  font-size: 12px;
  font-weight: 750;
  opacity: 0.78;
}

.store-button strong {
  font-size: 20px;
  line-height: 1;
}

.store-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(23, 20, 18, 0.24);
}

.hero-product {
  position: relative;
  min-height: 610px;
  isolation: isolate;
}

.hero-product::before {
  position: absolute;
  inset: 30px 8px 18px 30px;
  z-index: -1;
  border: 1px solid rgba(173, 45, 38, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 249, 238, 0.92), rgba(243, 213, 204, 0.5)),
    var(--paper-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  content: "";
}

.hero-proverb-stack {
  min-height: 640px;
}

.hero-proverb-stack::before {
  inset: 54px 26px 28px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 249, 238, 0.9), rgba(173, 45, 38, 0.12)),
    var(--paper-soft);
}

.proverb-card {
  position: absolute;
  display: block;
  width: 46%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 249, 238, 0.62);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 24px 58px rgba(23, 20, 18, 0.24);
  transform-origin: center center;
}

.proverb-card-front {
  z-index: 5;
  top: 118px;
  left: 50%;
  width: 52%;
  max-width: 332px;
  transform: translateX(-50%) rotate(-1deg);
}

.proverb-card-side-left {
  z-index: 4;
  top: 156px;
  left: 6%;
  transform: rotate(-9deg);
}

.proverb-card-side-right {
  z-index: 4;
  top: 148px;
  right: 4%;
  transform: rotate(8deg);
}

.proverb-card-back-left {
  z-index: 3;
  top: 58px;
  left: 20%;
  width: 40%;
  max-width: 258px;
  transform: rotate(-15deg);
}

.proverb-card-back-right {
  z-index: 3;
  top: 54px;
  right: 17%;
  width: 40%;
  max-width: 258px;
  transform: rotate(14deg);
}

.phone-shell {
  position: absolute;
  border: 10px solid #161413;
  border-radius: 38px;
  background: #161413;
  box-shadow: var(--shadow);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: 27px;
}

.lock-phone {
  z-index: 2;
  top: 24px;
  left: 0;
  width: 250px;
  min-height: 520px;
  transform: rotate(-4deg);
}

.detail-phone {
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 292px;
  min-height: 568px;
  transform: rotate(3deg);
}

.lock-screen {
  min-height: 500px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 249, 238, 0.14), rgba(255, 249, 238, 0) 34%),
    linear-gradient(145deg, #c43931 0%, #9a241e 48%, #641d18 100%);
  color: #fff9ee;
}

.app-screen {
  min-height: 548px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 249, 238, 0.98), rgba(246, 232, 208, 0.94)),
    var(--paper-soft);
}

.phone-status {
  justify-content: space-between;
  font-size: 12px;
  font-weight: 900;
  opacity: 0.9;
}

.lock-time {
  margin-top: 54px;
  text-align: center;
}

.lock-time strong,
.lock-time span {
  display: block;
}

.lock-time strong {
  font-size: 58px;
  line-height: 1;
}

.lock-time span {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 850;
  opacity: 0.84;
}

.lock-widget {
  margin: 102px auto 0;
  padding: 18px;
  border: 1px solid rgba(255, 249, 238, 0.82);
  border-radius: 18px;
  background: rgba(255, 249, 238, 0.95);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(23, 20, 18, 0.18);
}

.widget-topline {
  gap: 8px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 950;
}

.widget-topline img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.lock-widget strong {
  display: block;
  margin-top: 12px;
  font-family: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 52px;
  line-height: 1;
}

.pinyin {
  color: var(--primary);
  font-weight: 900;
}

.lock-widget .pinyin {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.lock-widget small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.lock-home-indicator {
  position: absolute;
  right: 82px;
  bottom: 14px;
  left: 82px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 249, 238, 0.72);
}

.cue-card {
  margin-top: 38px;
  padding: 22px;
  border: 1px solid rgba(92, 48, 34, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 249, 238, 0.88);
  box-shadow: 0 16px 38px rgba(80, 38, 24, 0.08);
}

.domain {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.cue-card h2 {
  margin: 12px 0 0;
  font-family: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 72px;
  line-height: 0.95;
}

.cue-card .pinyin {
  margin: 10px 0 0;
  font-size: 24px;
}

.meaning {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
}

.sentence {
  display: grid;
  gap: 7px;
  margin-top: 22px;
  padding: 15px;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: rgba(251, 243, 228, 0.85);
}

.sentence strong {
  line-height: 1.25;
}

.sentence span {
  color: var(--primary);
  font-weight: 850;
}

.sentence small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.audio-button {
  width: 100%;
  min-height: 46px;
  margin-top: 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
}

.review-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(173, 45, 38, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 249, 238, 0.72);
}

.review-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.review-strip strong {
  color: var(--primary-dark);
  font-size: 15px;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 {
  font-size: 54px;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.process-grid,
.pack-grid,
.pricing-grid {
  display: grid;
  gap: 16px;
}

.process-section {
  width: 100%;
  max-width: none;
  padding: 94px max(16px, calc((100vw - 1160px) / 2)) 104px;
  background:
    linear-gradient(180deg, rgba(255, 249, 238, 0.74), rgba(246, 232, 208, 0.5)),
    rgba(255, 249, 238, 0.34);
}

.process-section .section-heading {
  margin-bottom: 42px;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.pack-grid article,
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 249, 238, 0.76);
  box-shadow: 0 14px 42px rgba(80, 38, 24, 0.07);
}

.process-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.process-card:nth-child(2) {
  margin-top: 34px;
}

.process-card:nth-child(3) {
  margin-top: 68px;
}

.process-demo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(92, 48, 34, 0.16);
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: 0 22px 56px rgba(80, 38, 24, 0.13);
}

.process-demo-lock {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 249, 238, 0.12), rgba(255, 249, 238, 0) 34%),
    linear-gradient(145deg, #c43931 0%, #9a241e 52%, #641d18 100%);
  color: #fff9ee;
}

.demo-status {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 900;
}

.demo-lock-time {
  margin-top: 54px;
  text-align: center;
  font-size: 72px;
  font-weight: 950;
  line-height: 0.95;
}

.demo-widget {
  display: grid;
  gap: 6px;
  margin: 112px auto 0;
  padding: 20px;
  border: 1px solid rgba(255, 249, 238, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 249, 238, 0.95);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(23, 20, 18, 0.18);
}

.demo-widget span,
.demo-card span,
.demo-progress-head span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.demo-widget strong {
  font-family: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 58px;
  line-height: 0.95;
}

.demo-widget small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.process-demo-learn,
.process-demo-progress {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 249, 238, 0.98), rgba(246, 232, 208, 0.94)),
    var(--paper-soft);
}

.demo-card {
  display: grid;
  gap: 10px;
  margin-top: 72px;
  padding: 24px;
  border: 1px solid rgba(92, 48, 34, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 249, 238, 0.86);
}

.demo-card strong {
  font-family: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 76px;
  line-height: 0.95;
}

.demo-card em {
  color: var(--primary);
  font-size: 24px;
  font-style: normal;
  font-weight: 950;
}

.demo-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.demo-card div {
  margin-top: 8px;
  padding: 14px;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: rgba(251, 243, 228, 0.9);
  font-size: 18px;
  font-weight: 900;
}

.demo-progress-head {
  display: grid;
  gap: 8px;
}

.demo-progress-head strong {
  font-family: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1;
}

.demo-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.demo-progress-grid span {
  display: grid;
  gap: 4px;
  min-height: 92px;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(92, 48, 34, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 249, 238, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.demo-progress-grid strong {
  color: var(--primary-dark);
  font-size: 34px;
  line-height: 1;
}

.demo-chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  align-items: end;
  height: 190px;
  margin-top: 42px;
  padding: 18px;
  border: 1px solid rgba(92, 48, 34, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 249, 238, 0.68);
}

.demo-chart i {
  display: block;
  min-height: 44px;
  border-radius: var(--radius);
  background: var(--primary);
}

.demo-chart i:nth-child(2) {
  min-height: 78px;
  background: var(--jade);
}

.demo-chart i:nth-child(3) {
  min-height: 118px;
}

.demo-chart i:nth-child(4) {
  min-height: 92px;
  background: var(--gold);
}

.demo-chart i:nth-child(5) {
  min-height: 148px;
}

.process-copy {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.process-copy span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
}

.process-copy h3,
.pack-grid h3,
.price-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.process-copy p,
.pack-grid p,
.price-card li {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.pack-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pack-grid article {
  min-height: 186px;
  padding: 20px;
}

.pack-grid article span {
  color: var(--primary);
  font-family: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 850;
  line-height: 1;
}

.pricing-table-card {
  width: min(980px, 100%);
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 249, 238, 0.8);
  box-shadow: 0 18px 54px rgba(80, 38, 24, 0.08);
}

.pricing-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.pricing-table th,
.pricing-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.pricing-table thead th {
  background: rgba(255, 249, 238, 0.88);
}

.pricing-table thead th:nth-child(3),
.pricing-table tbody td:nth-child(3) {
  border-bottom-color: var(--pro-column-line);
  background: var(--pro-column-gradient);
  color: #fff9ee;
}

.pricing-table thead th:nth-child(3) {
  border-top-right-radius: calc(var(--radius) - 1px);
}

.pricing-table tr:last-child td:nth-child(3) {
  border-bottom-right-radius: calc(var(--radius) - 1px);
}

.pricing-table tbody tr:first-child th,
.pricing-table tbody tr:first-child td {
  box-shadow: inset 0 1px 0 var(--line);
}

.pricing-table tbody tr:first-child td:nth-child(3) {
  box-shadow: inset 0 1px 0 rgba(255, 249, 238, 0.32);
}

.pricing-table thead th:first-child {
  width: 28%;
}

.pricing-table thead th span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-table thead th strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-family: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 850;
  line-height: 1.03;
}

.pricing-table thead th:nth-child(3) span,
.pricing-table thead th:nth-child(3) strong,
.pricing-table tbody td:nth-child(3) .pro-upgrade {
  color: #fff9ee;
}

.billing-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0 0;
  padding: 5px;
  border: 1px solid rgba(255, 249, 238, 0.24);
  border-radius: 999px;
  background: rgba(255, 249, 238, 0.12);
}

.billing-toggle button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 249, 238, 0.76);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.billing-toggle button.is-active {
  background: #fff9ee;
  color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(80, 38, 24, 0.16);
}

.pricing-table tbody th {
  color: var(--ink);
  font-weight: 850;
}

.pricing-table tbody td {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.42;
}

.pricing-table tbody td:last-child {
  color: #fff9ee;
}

.pricing-table tr:last-child th,
.pricing-table tr:last-child td {
  border-bottom: 0;
}

.pro-upgrade {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkmark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  background: #1f8a5b;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 249, 238, 0.88);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.plan-note {
  margin: 0;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 20, 18, 0.54);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 30px;
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.05;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(173, 45, 38, 0.1);
  color: var(--primary-dark);
  font-size: 22px;
  line-height: 1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: rgba(23, 20, 18, 0.58);
  font-size: 14px;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 96px;
}

.legal-card {
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 249, 238, 0.84);
  box-shadow: 0 16px 48px rgba(80, 38, 24, 0.08);
}

.legal-kicker {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-card h1 {
  margin-bottom: 24px;
  font-size: 60px;
}

.legal-card h2 {
  margin: 34px 0 12px;
  font-size: 23px;
  line-height: 1.12;
}

.legal-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.legal-card a {
  color: var(--primary);
  font-weight: 850;
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .hero-product {
    width: min(650px, 100%);
    min-height: 640px;
    margin: 0 auto;
  }

  .process-grid {
    gap: 18px;
  }

  .process-card:nth-child(2) {
    margin-top: 24px;
  }

  .process-card:nth-child(3) {
    margin-top: 48px;
  }

  .pack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 24px, 1160px);
    min-height: 68px;
  }

  .nav-links {
    display: none;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero,
  .section:not(.process-section) {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    padding: 20px 0 62px;
  }

  .hero-brand-lockup {
    gap: 12px;
    margin-bottom: 20px;
  }

  .hero-brand-lockup img {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  .hero-brand-lockup span {
    font-size: 24px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-actions,
  .hero-actions a {
    width: 100%;
  }

  .store-button,
  .secondary-button {
    justify-content: center;
  }

  .hero-product {
    width: min(100%, 410px);
    min-height: 560px;
  }

  .hero-proverb-stack {
    width: min(100%, 430px);
    min-height: 520px;
  }

  .hero-product::before {
    inset: 18px 0 18px;
    border-radius: 22px;
  }

  .hero-proverb-stack::before {
    inset: 42px 4px 22px;
  }

  .proverb-card-front {
    top: 116px;
    left: 50%;
    width: 58%;
    transform: translateX(-50%) rotate(-1deg);
  }

  .proverb-card-side-left,
  .proverb-card-side-right {
    top: 144px;
    width: 48%;
  }

  .proverb-card-side-left {
    left: 1%;
    transform: rotate(-9deg);
  }

  .proverb-card-side-right {
    right: 0;
    width: 48%;
    transform: rotate(8deg);
  }

  .proverb-card-back-left,
  .proverb-card-back-right {
    top: 58px;
    width: 42%;
  }

  .proverb-card-back-left {
    left: 17%;
    transform: rotate(-15deg);
  }

  .proverb-card-back-right {
    right: 13%;
    transform: rotate(14deg);
  }

  .lock-phone {
    top: 14px;
    left: 0;
    width: 230px;
    min-height: 442px;
    transform: rotate(-4deg);
  }

  .detail-phone {
    right: 0;
    bottom: 8px;
    width: 244px;
    min-height: 470px;
    transform: rotate(4deg);
  }

  .lock-screen {
    min-height: 422px;
    padding: 14px;
  }

  .app-screen {
    min-height: 450px;
    padding: 14px;
  }

  .lock-time {
    margin-top: 42px;
  }

  .lock-time strong {
    font-size: 46px;
  }

  .lock-widget {
    margin-top: 78px;
    padding: 14px;
    border-radius: 14px;
  }

  .lock-widget strong {
    font-size: 42px;
  }

  .cue-card {
    margin-top: 28px;
    padding: 15px;
  }

  .cue-card h2 {
    font-size: 58px;
  }

  .cue-card .pinyin {
    font-size: 19px;
  }

  .meaning {
    font-size: 15px;
  }

  .sentence {
    margin-top: 16px;
    padding: 12px;
  }

  .audio-button {
    min-height: 42px;
    margin-top: 14px;
  }

  .review-strip {
    padding: 11px 12px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .process-section {
    padding: 68px 12px 74px;
  }

  .process-section .section-heading {
    width: min(100%, 620px);
  }

  .process-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    width: min(100%, 420px);
    gap: 32px;
  }

  .process-card,
  .process-card:nth-child(2),
  .process-card:nth-child(3) {
    margin-top: 0;
  }

  .process-demo {
    max-height: 520px;
  }

  .process-copy {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .process-copy span {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .pricing-table-card {
    overflow-x: visible;
  }

  .pricing-table {
    min-width: 0;
    table-layout: fixed;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 12px 8px;
  }

  .pricing-table thead th:first-child {
    width: 25%;
  }

  .pricing-table thead th:nth-child(2) {
    width: 24%;
  }

  .pricing-table thead th:nth-child(3) {
    width: 51%;
  }

  .pricing-table thead th span {
    font-size: 10px;
  }

  .pricing-table thead th strong {
    font-size: 21px;
  }

  .pricing-table tbody th,
  .pricing-table tbody td {
    font-size: 11px;
    line-height: 1.3;
  }

  .billing-toggle {
    gap: 4px;
    margin-top: 10px;
    padding: 4px;
  }

  .billing-toggle button {
    min-height: 32px;
    font-size: 11px;
  }

  .pro-upgrade {
    gap: 6px;
  }

  .checkmark {
    width: 17px;
    height: 17px;
    font-size: 10px;
  }

  .plan-note {
    padding: 13px 8px 14px;
    font-size: 11px;
  }

  .pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-card {
    padding: 28px;
  }

  .legal-card h1 {
    font-size: 42px;
  }

  .site-footer {
    width: min(100% - 24px, 1160px);
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 46px;
  }

  .hero-product {
    min-height: 530px;
  }

  .hero-proverb-stack {
    min-height: 500px;
  }

  .proverb-card-front {
    top: 124px;
  }

  .lock-phone {
    width: 212px;
  }

  .detail-phone {
    width: 224px;
  }

  .process-demo {
    max-height: 480px;
  }

  .pack-grid {
    grid-template-columns: 1fr;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 11px 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  html {
    scroll-behavior: auto;
    transition: none !important;
  }
}
