@import url("./tkle-radius.css");
@import url("./store-badges.css?v=1");

/*
  Shape system: app cards 16px, detail surfaces 12px, controls 8px, buttons full pill.
  Accent: brand blue only (#0a7cff light / #4c9dff dark).
*/
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --text: #111827;
  --text-2: #4d596c;
  --text-3: #69768b;
  --line: #dfe5ee;
  --accent: #0a7cff;
  --accent-press: #0069dc;
  --accent-soft: #e6f0ff;
  --on-accent: #ffffff;
  --mint: #e5f6ee;
  --mint-ink: #136c45;
  --sun: #fff3d9;
  --sun-ink: #8a5a00;
  --danger: #c2362b;
  --shadow: 0 1px 2px rgb(16 42 84 / .06), 0 12px 32px rgb(16 42 84 / .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #121b2c;
    --surface-2: #17233a;
    --text: #edf2fa;
    --text-2: #b4bfd1;
    --text-3: #93a0b6;
    --line: #23304a;
    --accent: #4c9dff;
    --accent-press: #74b3ff;
    --accent-soft: #15284a;
    --on-accent: #06101f;
    --mint: #11291f;
    --mint-ink: #7fdcaf;
    --sun: #2b2312;
    --sun-ink: #f3c56b;
    --danger: #ff8a80;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ph { font-size: 1.15em; line-height: 1; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.nav .wrap { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.nav-links { margin-left: auto; display: flex; gap: 24px; font-size: 15px; color: var(--text-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--radius-pill); font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-press); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Hero */
.hero { padding: 40px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: var(--radius-pill); }
.hero h1 { margin-top: 20px; font-size: clamp(38px, 5.2vw, 62px); line-height: 1.18; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin-top: 20px; font-size: 18px; color: var(--text-2); max-width: 30ch; }
.stores { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.nb { white-space: nowrap; }

.stage { position: relative; aspect-ratio: 1 / 1; max-width: 480px; margin-left: auto; width: 100%; }
.stage::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%); }
.stage .mascot { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 12px 24px rgb(20 30 60 / .08)); }
.toast { position: absolute; display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); font-size: 14px; line-height: 1.4; width: max-content; max-width: 280px; }
.toast .ic { flex: none; width: 36px; height: 36px; border-radius: var(--radius-control); display: grid; place-items: center; overflow: hidden; background: var(--accent-soft); }
.toast .ic img { width: 26px; height: 26px; }
.toast b { display: block; font-size: 13px; color: var(--text-3); font-weight: 600; }
.toast-a { left: -6%; bottom: 14%; }
.toast-b { right: -2%; top: 10%; }
.toast-b .ic { background: var(--mint); color: var(--mint-ink); font-size: 18px; }

/* Statement */
.statement { padding: 96px 0; background: var(--surface); border-block: 1px solid var(--line); }
.statement h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.32; letter-spacing: -0.03em; font-weight: 800; max-width: 20ch; }
.statement h2 span { color: var(--text-3); }
.statement p { margin-top: 20px; color: var(--text-2); font-size: 18px; max-width: 46ch; }

/* App preview */
.preview { padding: 112px 0 0; }
.preview h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.25; font-weight: 800; }
.preview .sub { margin-top: 12px; color: var(--text-2); font-size: 17px; max-width: 46ch; }
.phones { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.phone-item:nth-child(2) { margin-top: -32px; }
.phone-item:nth-child(1), .phone-item:nth-child(3) { margin-top: 32px; }
.phone { position: relative; width: 100%; max-width: 300px; margin: 0 auto; padding: 10px; border-radius: 46px; background: #0f1626; box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / .08); }
.phone img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 36px; background: var(--surface-2); }
.phone::before { content: none; }
.phone { container-type: inline-size; }
/* The home capture includes the island; the other captures need the same device overlay. */
/* All 1.0.7 captures include the real Dynamic Island; no duplicate overlay. */
.phone-item figcaption { margin-top: 24px; text-align: center; }
.phone-item figcaption b { display: block; font-size: 18px; letter-spacing: -0.02em; }
.phone-item figcaption span { color: var(--text-2); font-size: 15px; }

/* Why (bento) */
.why { padding: 112px 0; }
.why h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.25; font-weight: 800; }
.bento { margin-top: 40px; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.cell { border-radius: var(--radius-card); padding: 32px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.cell .ph-duotone { font-size: 34px; }
.cell h3 { margin-top: 18px; font-size: 22px; letter-spacing: -0.02em; line-height: 1.35; }
.cell p { margin-top: 8px; color: var(--text-2); max-width: 36ch; }
.cell-lg { grid-row: span 2; background: var(--accent-soft); border-color: transparent; display: flex; flex-direction: column; }
.cell-lg .ph-duotone { color: var(--accent); }
.cell-lg h3 { font-size: 28px; }
.device { margin-top: auto; padding-top: 40px; display: flex; align-items: flex-end; gap: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--text-2); border: 1px solid var(--line); }
.chip .ph { color: var(--accent); }
.chip.off { color: var(--text-3); }
.chip.off .ph { color: var(--text-3); }
.cell-mint { background: var(--mint); border-color: transparent; }
.cell-mint .ph-duotone { color: var(--mint-ink); }
.cell-sun { background: var(--sun); border-color: transparent; }
.cell-sun .ph-duotone { color: var(--sun-ink); }

/* Download */
.get { padding: 0 0 96px; }
.get-card { border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); padding: 56px; display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; }
.get-card img.m { width: 112px; height: 112px; }
.get-card h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.25; }
.get-card p { color: var(--text-2); margin-top: 6px; }
.get-card .stores { margin-top: 0; justify-content: flex-end; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Motion: entrance + scroll reveal. Communicates reading order; disabled for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
  .pop { opacity: 0; transform: translateY(12px) scale(.96); animation: rise .7s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(500ms + var(--i, 0) * 220ms); }
  .mascot { animation: mascot 1s cubic-bezier(.16,1,.3,1) both, float 5s ease-in-out 1s infinite; }
  .reveal { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 80ms); }
  .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes mascot { from { opacity: 0; transform: scale(.85) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

/* Mobile */
@media (max-width: 900px) {
  .hero { padding: 24px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .stage { max-width: 320px; margin: 0 auto; }
  .toast-a { left: 0; }
  .toast-b { right: 0; }
.bento { grid-template-columns: 1fr; }
  .preview { padding-top: 72px; }
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; margin: 40px -24px 0; padding: 8px 24px 16px; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone-item { flex: 0 0 68%; scroll-snap-align: center; margin-top: 0 !important; }
  .phone { max-width: 260px; }
  .cell-lg { grid-row: auto; }
  .get-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 20px; }
  .get-card .stores { justify-content: flex-start; }
  .statement, .why { padding: 72px 0; }
  .why, .get { padding-bottom: 72px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .phones { margin-inline: -16px; padding-inline: 16px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .cell { padding: 24px; }
  .toast { max-width: 230px; font-size: 13px; padding: 12px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 17px; }
  footer nav { margin-left: 0; }
}
