/* Lucid Mail landing. A bright product page. The inbox stays pinned while the page scrolls; scrolling the page is reading the inbox. */
:root {
  --bg: #ffffff;
  --gray: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --line: #e3e3e8;
  --blue: #0071e3;
  --link: #0066cc;
  --tint: rgba(0, 113, 227, .09);
  --spark: #5e5ce6;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Apple SD Gothic Neo', 'Helvetica Neue', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font); letter-spacing: -.012em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang="ko"] body { word-break: keep-all; letter-spacing: -.01em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.icon-img { display: block; border-radius: 22.4%; }

/* Navigation */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; height: 52px; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.nav-in { max-width: 1024px; height: 100%; margin: 0 auto; padding-inline: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-name { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.nav-name .icon-img { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.lang { padding: 4px 0; color: var(--muted); text-decoration: none; font-size: 13px; }
a.lang:hover { color: var(--ink); }
.lang[aria-current] { color: var(--ink); font-weight: 600; }
.soon { color: var(--link); font-weight: 500; }

/* Hero */
.hero { text-align: center; padding: clamp(48px, 9vw, 96px) 22px 8px; }
.hero .icon-img { width: clamp(84px, 11vw, 116px); height: clamp(84px, 11vw, 116px); margin: 0 auto 22px; box-shadow: 0 18px 40px -18px rgba(20, 40, 140, .55); }
.hero .name { margin: 0 0 10px; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.hero h1 { font-size: clamp(40px, 7.4vw, 84px); line-height: 1.05; font-weight: 700; letter-spacing: -.035em; }
html[lang="ko"] .hero h1 { line-height: 1.16; letter-spacing: -.04em; font-size: clamp(36px, 6.6vw, 76px); }
.hero h1 span { display: block; }
.hero .sub { max-width: 640px; margin: 22px auto 0; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.42; color: var(--muted); font-weight: 400; }
.avail { margin: 26px 0 0; font-size: 19px; color: var(--link); }
.meta { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* The pinned story */
.story { position: relative; height: 460vh; overflow: clip; }
.pin { position: sticky; top: 52px; height: calc(100vh - 52px); height: calc(100svh - 52px); max-width: 1024px; margin: 0 auto; padding: 0 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: clamp(32px, 6vw, 88px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
.step h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.03em; }
html[lang="ko"] .step h2 { line-height: 1.25; letter-spacing: -.035em; }
.step p { margin: 12px 0 0; max-width: 30em; font-size: 17px; line-height: 1.55; color: var(--muted); }
.step { opacity: .22; transition: opacity .45s ease; }
.step.on { opacity: 1; }
.stage { position: relative; display: grid; place-items: center; height: 100%; }
.phone-box { position: relative; }
.phone { position: absolute; left: 0; top: 0; width: 380px; height: 780px; transform-origin: 0 0; border-radius: 58px; background: #1d1d1f; padding: 10px; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .45); }
.screen { position: relative; width: 360px; height: 760px; border-radius: 48px; overflow: hidden; background: #fff; isolation: isolate; }

/* The app inside */
.bar { position: absolute; inset: 0 0 auto; z-index: 5; height: 104px; padding: 46px 20px 0; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); border-bottom: 1px solid rgba(0, 0, 0, .07); }
.bar-row { display: flex; align-items: center; justify-content: space-between; }
.bar h3 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.clean { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 2px 6px 8px; font-size: 17px; color: var(--blue); cursor: pointer; border-radius: 10px; }
.clean:disabled { color: #c7c7cc; cursor: default; }
.clean .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.clean:disabled .count { background: #d1d1d6; }
.clean.bump { animation: bump .32s ease; }
.clean.call { animation: call 1.6s ease-in-out infinite; }
.status { display: flex; align-items: center; gap: 6px; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.status svg { width: 11px; height: 11px; }
.spinner { width: 11px; height: 11px; border-radius: 50%; border: 1.6px solid #d1d1d6; border-top-color: var(--blue); animation: spin .8s linear infinite; }
.list { position: absolute; left: 0; right: 0; top: 0; padding: 104px 0 300px; will-change: transform; }
.line-mark { position: absolute; left: 6px; z-index: 4; width: 3px; height: 18px; border-radius: 3px; background: var(--blue); opacity: .55; }
.row { position: relative; isolation: isolate; height: 86px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 0 16px 0 18px; }
.row::after { content: ''; position: absolute; left: 74px; right: 0; bottom: 0; border-bottom: 1px solid var(--line); }
.row .fill { position: absolute; inset: 0; z-index: -1; background: var(--tint); transform-origin: left; transform: scaleX(var(--p, 0)); }
.row[data-on="1"] .fill { transform: scaleX(1); }
.avawrap { position: relative; width: 44px; height: 44px; }
.ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 600; font-size: 17px; transition: filter .3s, opacity .3s; }
.body { position: relative; min-width: 0; transform-origin: left center; transition: transform .25s ease .1s; }
.hd { display: flex; align-items: center; gap: 5px; }
.from { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.time { margin-left: auto; font-size: 13px; color: var(--faint); white-space: nowrap; }
.subj { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prev { font-size: 14.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp { display: none; width: 12px; height: 12px; color: var(--spark); flex: none; }
.row[data-state="important"] .sp { display: block; }
.row[data-state="go"] .body { transform: scale(.94); }
.row[data-state="go"] .from, .row[data-state="go"] .subj, .row[data-state="go"] .prev { color: var(--faint); }
.row[data-state="go"] .ava { filter: grayscale(1); opacity: .4; }
.row[data-state="pending"] .body::after { content: ''; position: absolute; inset: -4px 0; background: linear-gradient(90deg, transparent, rgba(0, 113, 227, .08), transparent); background-size: 200% 100%; animation: sweep 1.1s linear infinite; }
.tag { position: absolute; left: 28px; top: 28px; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: none; }
.tag::before { content: ''; position: absolute; inset: -10px; }
.row[data-state="go"] .tag { display: block; }
.badge { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: #f2f2f7; color: #8e8e93; border: 1.5px solid #fff; }
.badge svg { width: 12px; height: 12px; }
.ring { position: absolute; left: -4px; top: -4px; width: 32px; height: 32px; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
.row[data-on="1"] .ring { display: none; }
.row[data-on="1"] .badge { background: var(--blue); color: #fff; }
.ic-check { display: none; }
.row[data-on="1"] .ic-trash { display: none; }
.row[data-on="1"] .ic-check { display: block; }
.row.pop .badge { animation: pop .42s cubic-bezier(.3, 1.6, .5, 1); }
.row.gone { display: none; }
.end { padding: 28px 20px; text-align: center; font-size: 14px; color: var(--faint); }
.menu { position: absolute; right: 12px; top: 92px; z-index: 8; width: 236px; border-radius: 14px; background: rgba(250, 250, 252, .97); box-shadow: 0 20px 50px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .06); overflow: hidden; }
.menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: none; font-size: 16px; text-align: left; cursor: pointer; }
.menu button:first-child { border-top: 0; }
.menu button:hover { background: #ececf0; }
.menu .danger { color: #ff3b30; }
.menu svg { width: 17px; height: 17px; }
.toast { position: absolute; left: 12px; right: 12px; bottom: 28px; z-index: 7; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 52px; padding: 0 8px 0 18px; border-radius: 16px; background: rgba(40, 40, 44, .94); color: #fff; font-size: 15px; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); overflow: hidden; }
.toast button { border: 0; background: none; color: #64a8ff; font-weight: 600; font-size: 15px; padding: 8px 10px; cursor: pointer; }
.toast i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #64a8ff; transform-origin: left; }
.flyer { position: absolute; z-index: 9; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; pointer-events: none; }
.flyer svg { width: 11px; height: 11px; }

/* Plain sections */
.band { padding: clamp(80px, 11vw, 140px) 22px; }
.band.gray { background: var(--gray); }
.inner { max-width: 980px; margin: 0 auto; }
.center { text-align: center; }
.big { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
html[lang="ko"] .big { line-height: 1.2; letter-spacing: -.04em; }
.lead { max-width: 680px; margin: 22px auto 0; font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: var(--muted); }
.glyph { width: 64px; height: 64px; margin: 0 auto 26px; color: var(--blue); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px); margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; list-style: none; }
.cols li { border-top: 1px solid var(--line); padding-top: 22px; }
.band.gray .cols li { border-top-color: #d8d8de; }
.cols h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.cols p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.cols svg { display: block; width: 28px; height: 28px; margin-bottom: 14px; color: var(--ink); }
.price { font-size: clamp(56px, 9vw, 104px); font-weight: 700; letter-spacing: -.045em; line-height: 1; margin: 0; }
.price small { font-size: .34em; font-weight: 600; letter-spacing: -.02em; color: var(--muted); }
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 300; font-size: 26px; line-height: .9; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 24px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 40em; }
footer { padding: 26px 22px 40px; background: var(--gray); color: var(--muted); font-size: 12px; }
footer .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* Privacy policy and support */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) 22px clamp(64px, 9vw, 112px); }
.doc h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.1; font-weight: 700; letter-spacing: -.035em; }
.doc .updated { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.doc > p { margin: 22px 0 0; font-size: 19px; line-height: 1.55; }
.doc section { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h2 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.doc section p, .doc li { font-size: 17px; line-height: 1.6; color: #3a3a3c; }
.doc section p { margin: 12px 0 0; }
.doc ul { margin: 12px 0 0; padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc a { color: var(--link); overflow-wrap: anywhere; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.14); } }
@keyframes call { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); } 50% { box-shadow: 0 0 0 6px rgba(0, 113, 227, .18); } }

/* Phone width: the current step sits above the pinned phone. */
@media (max-width: 820px) {
  .pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: stretch; gap: 14px; padding-top: 18px; padding-bottom: 14px; }
  .steps { display: grid; }
  .step { grid-area: 1 / 1; opacity: 0; transition: opacity .25s ease; }
  .step.on { opacity: 1; transition-delay: .12s; }
  .step h2 { font-size: 24px; }
  .step p { margin-top: 6px; font-size: 15px; }
  .cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
