:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --ink: #122e29;
  --muted: #485e55;
  --jade: #103d36;
  --green: #1b6554;
  --lime: #dcf49f;
  --line: #d5dbd0;
  --white: #fffef9;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Yu Gothic", "Malgun Gothic", sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, summary { font: inherit; }
a, button, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #8960b1; outline-offset: 4px; }
.wrap { width: min(1224px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 99; padding: 10px 16px; background: white; }
.skip:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 34px; min-height: 78px; }
.brand { flex: none; }
.brand img { width: 160px; height: auto; }
.top-nav { display: flex; gap: clamp(20px, 3vw, 42px); margin-left: auto; font-size: 15px; font-weight: 650; }
.top-nav a { text-decoration: none; }
.top-nav a:hover { text-decoration: underline; }
.languages { position: relative; z-index: 3; margin-left: auto; }
.languages summary { min-height: 44px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 24px; cursor: pointer; list-style: none; white-space: nowrap; font-size: 14px; }
.languages summary::-webkit-details-marker { display: none; }
.languages summary::after { content: "⌄"; margin-left: 10px; }
.languages[open] summary { background: var(--white); }
.languages nav { position: absolute; top: calc(100% + 8px); right: 0; width: 144px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 12px 28px #0e352622; }
.languages nav a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.languages nav a:hover, .languages nav [aria-current] { background: #e8efd9; }

.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 5.4vw, 90px); align-items: center; padding-block: 45px 34px; }
.hero-copy { padding-block: 22px; }
.section-label { margin-bottom: 15px; color: var(--green); font-size: 14px; font-weight: 750; }
h1 { font-size: clamp(46px, 5.25vw, 78px); font-weight: 760; line-height: 1.09; letter-spacing: -.057em; overflow-wrap: anywhere; }
h1 em { display: block; margin-top: .11em; color: var(--green); font-style: normal; }
.zh h1, .ja h1, .ko h1 { letter-spacing: -.066em; }
.ja h1 { font-size: clamp(41px, 4.4vw, 66px); }
.intro { margin-block: 22px 0; color: var(--muted); max-width: 36rem; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 23px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; width: fit-content; min-height: 50px; padding: 11px 19px; border: 1px solid transparent; border-radius: 28px; background: var(--jade); color: white; font-size: 15px; font-weight: 700; text-decoration: none; }
.button:hover { background: #226454; }
.text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 15px; font-weight: 650; }
.hero-stage { position: relative; isolation: isolate; min-width: 0; height: clamp(420px, 43.2vw, 575px); overflow: hidden; border-radius: 30px; background: radial-gradient(ellipse at 68% 36%, #2c6a53, transparent 63%), var(--jade); }
.hero-stage::before, .hero-stage::after { position: absolute; z-index: -1; content: ""; width: 91%; aspect-ratio: 1; border: 1px solid #f2ffd33d; border-radius: 50%; top: 5%; left: 6%; }
.hero-stage::after { width: 73%; top: 15%; left: 15%; }
.hero-phone, .feature-phone { position: absolute; background: #102821; padding: 7px; overflow: hidden; box-shadow: 0 25px 55px #041e2c3d, 0 0 0 1px #ffffff2e; border-radius: 29px; }
.hero-phone { width: clamp(208px, 22vw, 309px); left: 48%; top: 6%; transform: translateX(-29%) rotate(6deg); }
.hero-phone img, .feature-phone img { width: 100%; height: auto; border-radius: 22px; background: #f5f8f9; }
.reminder-card { position: absolute; z-index: 1; left: 5%; bottom: 16%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: min(76%, 283px); padding: 12px 14px; border: 1px solid #ffffff60; border-radius: 16px; background: #f8ffe9; color: var(--ink); box-shadow: 0 12px 24px #041e2c46; }
.reminder-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; background: var(--lime); color: var(--jade); font-size: 23px; font-weight: 750; }
.reminder-card strong, .reminder-card span span { display: block; }
.reminder-card strong { font-size: 14px; }
.reminder-card span span { color: var(--muted); font-size: 12px; }
time { font-variant-numeric: tabular-nums; }
.reminder-card time { color: var(--jade); font-size: 17px; font-weight: 750; }
.hero-stage figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 11px 15px; background: var(--jade); color: #e0eee5; font-size: 12px; text-align: center; }

.feature-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 14px; border-block: 1px solid var(--line); }
.feature-links a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 11px 18px; text-decoration: none; border-radius: 10px; }
.feature-links a + a { border-left: 1px solid var(--line); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.feature-links a:hover { background: #edf0e3; }
.feature-links a strong, .feature-links a span span { display: block; }
.feature-links a strong { font-size: 16px; }
.feature-links a span span { color: var(--muted); font-size: 14px; }
.mark { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 14px; background: #e5eed8; color: var(--jade); font-weight: 750; font-size: 22px; }
.feature-links a:nth-child(2) .mark { background: #dbeaf3; }
.feature-links a:nth-child(3) .mark { background: #eae0f2; }

.section { padding-block: clamp(55px, 7vw, 100px); }
h2 { max-width: 24ch; font-size: clamp(30px, 3.45vw, 49px); font-weight: 740; line-height: 1.18; letter-spacing: -.04em; overflow-wrap: anywhere; }
.routine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr); gap: clamp(27px, 5.5vw, 85px); align-items: center; }
.routine .intro { font-size: 17px; margin-top: 16px; }
.checks, .feature-copy ul, .daily-list { list-style: none; padding: 0; margin: 19px 0 0; }
.checks li, .feature-copy li { position: relative; padding-left: 24px; margin-block: 9px; font-size: 15px; }
.checks li::before, .feature-copy li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.dose-demo { min-width: 0; padding: clamp(14px, 2.6vw, 33px); border: 1px solid #d5dfc8; border-radius: 25px; background: #eef3e2; box-shadow: 0 10px 28px #123f2e0c; }
.demo-head, .demo-progress { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.demo-head h3 { font-size: clamp(20px, 2.1vw, 27px); }
.demo-head > span { padding: 4px 10px; background: var(--white); border: 1px solid #d6e0cc; border-radius: 30px; font-size: 12px; font-weight: 650; }
.demo-progress { margin-block: 13px 17px; font-size: 14px; color: var(--jade); font-weight: 700; }
.demo-progress progress { appearance: none; width: clamp(90px, 40%, 210px); height: 7px; border: 0; border-radius: 20px; overflow: hidden; background: #d6dfca; }
progress::-webkit-progress-bar { background: #d6dfca; }
progress::-webkit-progress-value { background: var(--green); border-radius: 20px; }
progress::-moz-progress-bar { background: var(--green); }
.dose-entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px 14px; align-items: center; padding: 12px 13px; background: var(--white); border: 1px solid #d6e0cc; border-radius: 15px; }
.dose-entry + .dose-entry { margin-top: 8px; }
.dose-entry time { font-size: 15px; font-weight: 750; }
.dose-entry div strong, .dose-entry div span { display: block; }
.dose-entry div span { color: var(--muted); font-size: 13px; }
.completed { color: var(--jade); font-weight: 700; font-size: 13px; }
.taken { min-height: 44px; padding: 6px 13px; border: 1px solid transparent; border-radius: 12px; background: var(--green); color: white; cursor: pointer; font-size: 14px; font-weight: 700; }
.taken:hover { background: var(--jade); }
.taken[aria-pressed="true"] { border-color: #bdcdb4; background: #e6efd9; color: var(--jade); }

.showcase { padding-top: 2px; }
.showcase > h2 { max-width: none; margin-bottom: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border-radius: 28px; background: #e8eff3; }
.feature-ai { background: #eee8f1; }
.feature-copy { padding: clamp(22px, 3vw, 38px); }
.feature-copy .section-label { margin-bottom: 10px; }
.feature-copy h2 { font-size: clamp(25px, 2.7vw, 37px); }
.feature-copy h2 + p { margin-top: 12px; color: var(--muted); }
.feature-copy ul { margin-top: 12px; }
.feature-copy li { margin-block: 6px; }
.feature-toggle:not([hidden]) { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.feature-toggle button { min-height: 44px; border: 1px solid #cfc3d6; border-radius: 22px; padding: 6px 13px; background: #fffef9; color: var(--ink); font-size: 14px; font-weight: 650; cursor: pointer; }
.feature-toggle button[aria-pressed="true"] { background: #483654; border-color: #483654; color: white; }
.feature-visual { position: relative; min-height: clamp(320px, 39vw, 477px); overflow: hidden; background: radial-gradient(ellipse at 50% 85%, #c5dce6, transparent 75%); }
.feature-ai .feature-visual { background: radial-gradient(ellipse at 50% 85%, #d7c3e2, transparent 75%); }
.feature-visual::before { position: absolute; inset: 4% 15% auto; content: ""; border: 1px solid #ffffffd0; border-radius: 50%; aspect-ratio: 1; }
.feature-phone { top: 6px; left: 50%; width: min(56%, 268px); transform: translateX(-50%); }
.ai-note { margin-top: 16px; color: var(--muted); font-size: 14px; }

.daily-section { background: #e8eddf; padding-block: clamp(35px, 5.2vw, 72px); }
.daily-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: clamp(22px, 5.7vw, 90px); align-items: center; }
.daily-photo { overflow: hidden; border-radius: 26px; }
.daily-photo img { width: 100%; height: auto; }
.daily-list { display: grid; gap: 15px; }
.daily-list li { display: flex; gap: 13px; align-items: flex-start; }
.daily-list .mark { background: var(--white); font-size: 19px; }
.daily-list strong { font-size: 16px; }
.daily-list p { margin-top: 2px; color: var(--muted); font-size: 15px; }

.sources { padding-block: clamp(45px, 6vw, 78px); }
.sources h2 { font-size: clamp(25px, 2.75vw, 36px); margin-bottom: 17px; }
.source-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.source-links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; text-decoration: none; }
.source-links a:hover { background: var(--white); }
.source-links a strong { grid-column: 1; }
.source-links a span:first-of-type { grid-column: 1; color: var(--muted); font-size: 13px; }
.source-links a span:last-of-type { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.poster { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: clamp(42px, 6vw, 78px); padding: clamp(18px, 4vw, 49px); border: 1px solid var(--line); border-radius: 25px; background: var(--white); }
.poster h2 { font-size: clamp(26px, 3vw, 41px); }
.poster p { margin-top: 10px; color: var(--muted); }
.poster .button { margin-top: 18px; }
.poster img { width: 100%; height: auto; border-radius: 11px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px 32px; padding-block: 25px; color: var(--muted); font-size: 13px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 9px 19px; }

@media (max-width: 1020px) {
  .wrap { width: min(1224px, calc(100% - 48px)); }
  .feature-links a { padding-inline: 9px; gap: 9px; }
  .hero-phone { left: 40%; }
  .hero h1 { font-size: clamp(37px, 5.4vw, 56px); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { min-height: 65px; }
  .brand img { width: 137px; }
  .top-nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 19px; padding-block: 30px 19px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(39px, 8.9vw, 56px); }
  .hero-stage { height: clamp(350px, 85vw, 480px); border-radius: 23px; }
  .hero-stage::before { top: 1%; left: 6%; }
  .hero-stage::after { top: 9%; }
  .hero-phone { top: 5%; left: 42%; width: clamp(188px, 56vw, 276px); }
  .reminder-card { left: 5%; bottom: 15%; }
  .intro { margin-top: 15px; }
  .actions { margin-top: 18px; }
  .feature-links { grid-template-columns: minmax(0, 1fr); padding-block: 4px; }
  .feature-links a { padding: 8px 2px; gap: 10px; }
  .feature-links a + a { border-top: 1px solid var(--line); border-left: 0; }
  .feature-links a span span { font-size: 13px; }
  .feature-links .mark { width: 33px; height: 33px; border-radius: 10px; font-size: 19px; }
  .routine, .feature-grid, .daily-grid, .poster { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 44px; }
  .showcase { padding-top: 3px; }
  .feature-visual { min-height: clamp(320px, 96vw, 465px); }
  .feature-phone { width: min(60%, 260px); }
  .daily-photo { border-radius: 19px; }
  .source-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poster { gap: 20px; }
  .footer-inner { gap: 13px; }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 28px); }
  .hero h1 { font-size: clamp(33px, 9.5vw, 39px); }
  .reminder-card { width: min(82%, 270px); padding-inline: 11px; }
  .dose-entry { grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; }
  .dose-entry > :last-child { grid-column: 2; justify-self: start; }
  .dose-entry .completed { padding-bottom: 2px; }
  .taken { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
