@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --ink: #17171B; --coral: #F2552C; --coral-dark: #D9431C;
  --peach: #FDE6DB; --mint: #DDF5E8; --sky: #E3EEFD; --butter: #FFF1C7; --key: #F2F3F5;
  --bg: #FAFAFB; --surface: #FFFFFF; --muted: #5F6068; --line: #E4E5E8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F2F2F5; --peach: #3D2219; --mint: #173528; --sky: #1B2A40; --butter: #3A3018; --key: #26262C;
    --bg: #111114; --surface: #1A1A1F; --muted: #A4A5AD; --line: #2C2C33; --coral-dark: #FF8A63;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav.links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.ghost { border: 1.5px solid var(--line); }
.btn.small { padding: 8px 14px; font-size: 14px; }
@media (max-width: 760px) { nav.links { display: none; } header.top .btn { margin-left: auto; } }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.badge { display: inline-block; background: var(--peach); color: var(--coral-dark); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.15; margin: 16px 0; letter-spacing: -0.02em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* phone mockup */
.phone { width: 300px; max-width: 100%; margin: 0 auto; background: var(--surface); border: 10px solid #17171B; border-radius: 40px; padding: 18px 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.25); }
.phone .screen-title { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.display { text-align: right; padding: 18px 6px 12px; }
.display .expr { color: var(--muted); font-size: 18px; }
.display .result { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.display .preview { color: var(--coral); font-size: 14px; font-weight: 600; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.keys span { background: var(--key); border-radius: 16px; aspect-ratio: 1 / .82; display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.keys .op { background: var(--peach); color: var(--coral-dark); }
.keys .eq { background: var(--coral); color: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.chips span { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--key); }

/* sections */
section.block { padding: 72px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--coral); font-weight: 800; letter-spacing: .12em; font-size: 13px; }
h2.title { font-size: clamp(28px, 4vw, 40px); line-height: 1.25; margin: 8px 0 12px; letter-spacing: -0.01em; }
p.desc { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 0 36px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.alt .card { background: var(--bg); }
.card img.icon { width: 64px; height: 64px; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.card.peach { background: var(--peach); border-color: transparent; }
.card.mint { background: var(--mint); border-color: transparent; }
.card.sky { background: var(--sky); border-color: transparent; }
.card.butter { background: var(--butter); border-color: transparent; }

/* section intro + mini phone mockups */
.intro { display: grid; grid-template-columns: 1fr 290px; gap: 48px; align-items: center; margin-bottom: 40px; }
.intro.flip { grid-template-columns: 290px 1fr; }
.intro.flip > .phone { order: -1; }
.intro p.desc { margin-bottom: 0; }
@media (max-width: 860px) {
  .intro, .intro.flip { grid-template-columns: 1fr; gap: 32px; }
  .intro.flip > .phone { order: 0; }
}
.phone.mini { width: 290px; border-width: 8px; border-radius: 36px; padding: 16px 14px 18px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.25); }
.alt .phone.mini { background: var(--bg); }
.phone.mini .display { padding: 10px 6px 10px; }
.phone.mini .display .result { font-size: 36px; }
.phone .pill { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--peach); color: var(--coral-dark); }
.phone .chips .on { background: var(--ink); color: var(--bg); }
.sci { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.sci span { background: var(--key); border-radius: 10px; padding: 7px 0; text-align: center; font-weight: 700; font-size: 13px; }
.sub-title { font-weight: 800; font-size: 14px; margin: 14px 2px 6px; }
.rows .row { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 9px 2px; border-top: 1px solid var(--line); font-size: 13px; }
.rows .row span { color: var(--muted); }
.rows .row b { font-weight: 800; }
.rows.cats .row { padding-bottom: 14px; }
.rows.cats .row i { position: absolute; left: 2px; bottom: 5px; height: 4px; border-radius: 4px; background: var(--coral); opacity: .75; }
.field { display: flex; justify-content: space-between; align-items: center; background: var(--key); border-radius: 14px; padding: 11px 14px; margin-top: 8px; font-size: 14px; }
.field span { color: var(--muted); font-weight: 600; }
.result-box { background: var(--peach); border-radius: 18px; padding: 16px; margin-top: 12px; }
.result-box.mint { background: var(--mint); margin-top: 6px; }
.result-box .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.result-box .big { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.result-box .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.result-box .meta b { color: var(--ink); }
.bar { height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 12%, transparent); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 8px; background: var(--coral); }
.tile { border-radius: 18px; padding: 14px; margin-top: 10px; }
.tile.peach { background: var(--peach); }
.tile.sky { background: var(--sky); }
.tile-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.tile-head img { width: 28px; height: 28px; }
.stars { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 13px; }
.stars span { color: var(--muted); font-weight: 600; }
.stars i { font-style: normal; color: var(--coral); letter-spacing: 2px; }
.stars s { text-decoration: none; opacity: .25; }
.lucky { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.lucky b { color: var(--ink); font-size: 15px; }
.lucky .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); vertical-align: -1px; margin-left: 2px; }
.tile .q { font-weight: 800; font-size: 16px; }
.lucky .go { color: var(--coral-dark); font-weight: 800; }

.points { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point .num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; }
.point h3 { margin: 4px 0 4px; font-size: 17px; }
.point p { margin: 0; color: var(--muted); font-size: 15px; }

.closing { text-align: center; padding: 88px 0; }
.closing img { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 18px; }
.closing .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer .copy { margin-left: auto; }
@media (max-width: 760px) { footer .copy { margin-left: 0; width: 100%; } }

/* privacy page */
.policy { max-width: 820px; margin: 0 auto; padding: 48px 20px 80px; }
.policy h1 { font-size: clamp(28px, 5vw, 38px); margin: 0 0 6px; }
.policy .meta { color: var(--muted); margin-bottom: 24px; }
.policy .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 24px 0 32px; }
.policy .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
@media (max-width: 640px) { .policy .toc ol { columns: 1; } }
.policy .toc a { text-decoration: none; color: var(--muted); }
.policy h2 { font-size: 20px; margin: 36px 0 10px; padding-top: 8px; scroll-margin-top: 80px; }
.policy ul { padding-left: 20px; }
.policy li { margin: 4px 0; }
.policy table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 12px; }
.policy th, .policy td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.policy th { background: var(--key); white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.policy .summary { background: var(--mint); border-radius: 18px; padding: 18px 22px; }
.policy .summary ul { margin: 6px 0 0; }
