/* tailf web. tokens mirror tailf-app lib/src/theme/tokens.dart (canon: design/tailey/tailey.css). */
:root {
  --paper: #F7FBF3;
  --card: #FFFFFF;
  --chip: #EEF5E8;
  --ink: #17240F;
  --ink-2: #5C6B51;
  --ink-3: #64725B; /* app mut #93A18A, darkened for web text contrast (4.9:1 on paper) */
  --rule: #E6EDE0;
  --rule-soft: #EAF2E3;
  --acc: #58CC02;
  --acc-ink: #2E7D0F;
  --mark: #2E7D0F;
  --r-card: 20px;
  --r-cta: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.62;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- shared shell ---------- */
.page { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.mark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: ui-monospace, SFMono-Regular, Menlo, "NanumGothicCoding", monospace;
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
  text-decoration: none;
}
.mark span { color: var(--mark); }

.topbar { padding: 18px 0; }
.topbar .page { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topctas { display: flex; align-items: center; gap: 8px; }
.topcta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 100px; background: var(--chip); color: var(--acc-ink);
  font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.topcta:hover { background: #E4EFDA; }

/* ---------- hero ---------- */
.hero { padding: 26px 0 46px; }
.hero-grid { display: grid; gap: 34px; }
h1 {
  font-size: 32px; line-height: 1.34; letter-spacing: -0.035em; font-weight: 800;
}
.lede { margin-top: 18px; font-size: 16.5px; color: var(--ink-2); }
.lede b { color: var(--ink); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  background: var(--acc); color: var(--ink);
  border-radius: var(--r-cta);
  font-size: 17px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none;
}
.btn:hover { background: #4FBB02; }
.cta-note { margin-top: 12px; font-size: 14px; color: var(--ink-3); }

/* A store button before that store has the app. It is muted, not dead: it
   still leads to /go/<store>/, which says what is actually happening. A press
   we do not count is a press we cannot learn from. */
.btn.install-pending { background: var(--chip); color: var(--ink-2); }
.btn.install-pending:hover { background: #E4EFDA; }
.btn:focus-visible, .topcta:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.topcta.install-pending { color: var(--ink-2); }
.cta-note a { color: var(--acc-ink); }

.phone {
  border: 1px solid var(--rule);
  border-radius: 26px;
  background: var(--card);
  padding: 6px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(23, 36, 15, 0.06);
}
.phone img { border-radius: 20px; }
.hero-shot { display: flex; justify-content: center; }
.hero-shot .phone { width: 100%; max-width: 288px; }

/* ---------- bands & blocks ---------- */
.band { background: var(--rule-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.block { padding: 54px 20px; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--acc-ink); text-transform: uppercase;
}
h2 {
  margin-top: 10px;
  font-size: 25px; line-height: 1.38; letter-spacing: -0.03em; font-weight: 800;
}
.block-sub { margin-top: 12px; font-size: 16px; color: var(--ink-2); }

/* ---------- live number ---------- */
.live { padding: 34px 20px 38px; text-align: center; }
.live-n { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; color: var(--acc-ink); line-height: 1.25; }
.live-n small { font-size: 19px; font-weight: 700; color: var(--ink-2); margin-left: 4px; }
.live-sub { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.live-note { margin-top: 16px; font-size: 16px; color: var(--ink); font-weight: 700; }

/* ---------- steps ---------- */
.steps { margin-top: 30px; list-style: none; display: grid; gap: 18px; }
.step {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card);
  padding: 24px 22px 0;
  display: grid; gap: 18px;
}
.step-no {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--acc-ink);
}
.step h3 { margin-top: 8px; font-size: 19px; line-height: 1.4; letter-spacing: -0.025em; font-weight: 800; }
.step p { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
.step-shot { display: flex; justify-content: center; }
.step-shot .phone {
  width: 100%; max-width: 244px; height: 300px;
  border-bottom: 0; border-radius: 26px 26px 0 0; margin-bottom: -1px;
  padding: 6px 6px 0;
}
.step-shot .phone img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  border-radius: 20px 20px 0 0;
}
.step-tail {
  margin-top: 22px; padding: 20px 22px;
  background: var(--chip); border-radius: var(--r-card);
  font-size: 15.5px; color: var(--ink);
}

/* ---------- 설치 전에 세어 보기 ---------- */
[hidden] { display: none !important; }
.try-panel {
  /* The number is the reason this section exists, so it stays on screen while
     the finger is still on the chips. 24 chips are taller than a phone. */
  position: sticky; top: 8px; z-index: 2;
  max-width: 620px;
  margin-top: 22px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card);
  box-shadow: 0 6px 20px rgba(23, 36, 15, 0.06);
}
.try-big {
  font-size: 21px; line-height: 1.34; letter-spacing: -0.03em; font-weight: 800; color: var(--ink);
}
.try-second { margin-top: 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--acc-ink); }
.try-basis { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.try-multi { margin-top: 26px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.try-group { margin-top: 16px; }
.try-group-name { font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em; color: var(--ink-3); }
.chips { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 100px;
  background: var(--chip); color: var(--ink-2);
  font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
.chip:hover { background: #E4EFDA; }
.chip.on { background: var(--acc); color: var(--ink); font-weight: 700; }
.chip.on:hover { background: #4FBB02; }
.chip:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.try .cta-row { margin-top: 30px; }
.try .cta-note { max-width: 34em; }

/* ---------- 4 cells ---------- */
.grid4 { margin-top: 26px; display: grid; gap: 14px; }
.cell { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 22px; }
.cell h3 { font-size: 17px; line-height: 1.42; letter-spacing: -0.025em; font-weight: 800; }
.cell p { margin-top: 9px; font-size: 15px; color: var(--ink-2); }

/* ---------- gallery ---------- */
.gallery {
  margin-top: 26px;
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.gallery:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 4px; }
.shot { flex: 0 0 216px; scroll-snap-align: start; }
.shot .phone { height: 400px; padding: 6px 6px 0; border-bottom: 0; border-radius: 26px 26px 0 0; }
.shot .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 20px 20px 0 0; }
.step-shot .phone img.pos-bottom, .shot .phone img.pos-bottom { object-position: center bottom; }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.gallery-hint { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- faq ---------- */
.faq { margin-top: 26px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 60px; padding: 14px 0;
  font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--acc-ink); font-size: 21px; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.faq details p { padding: 0 0 20px; font-size: 15.5px; color: var(--ink-2); }
.faq details p a { color: var(--acc-ink); }

/* ---------- last cta ---------- */
.last { text-align: center; padding-top: 60px; padding-bottom: 64px; }
.last h2 { font-size: 26px; }
.last .block-sub { max-width: 30em; margin-left: auto; margin-right: auto; }
.last .cta-row { justify-content: center; }
.last .cta-note { max-width: 34em; margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 26px 0 44px; font-size: 13.5px; color: var(--ink-3); }
.foot a { display: inline-block; min-height: 44px; line-height: 44px; color: var(--ink-3); text-decoration: none; }
.foot a:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.foot a:hover { color: var(--mark); }
.foot .sep { margin: 0 9px; }
.foot .co { display: block; margin-top: 12px; }

/* ---------- privacy / support articles ---------- */
.wrap { max-width: 640px; margin: 0 auto; padding: 0 22px; }
.wrap > header { padding: 30px 0 0; }
article h1 { margin-top: 44px; font-size: 27px; }
article h3 { margin-top: 34px; font-size: 16px; font-weight: 700; }
article p { margin-top: 11px; font-size: 15.5px; color: var(--ink-2); }
article ul { margin-top: 11px; padding-left: 19px; font-size: 15.5px; color: var(--ink-2); }
article li { margin-top: 6px; }
article .back { display: inline-block; min-height: 44px; line-height: 44px; margin-top: 24px; font-size: 14px; color: var(--mark); text-decoration: none; }
.wrap > footer { margin-top: 64px; padding: 26px 0 46px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-3); }
.wrap > footer a { display: inline-block; min-height: 44px; line-height: 44px; color: var(--ink-3); text-decoration: none; }
.wrap > footer a:hover { color: var(--mark); }
.wrap > footer .sep { margin: 0 9px; }
.wrap > footer .co { display: block; margin-top: 12px; }

/* ---------- /go/ one screen ---------- */
.go { padding: 52px 0 84px; }
.go h1 { font-size: 26px; line-height: 1.34; letter-spacing: -0.03em; font-weight: 800; }
.go p { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); }
.go .go-back { margin-top: 22px; }
.go .go-back a {
  display: inline-block; min-height: 44px; line-height: 44px;
  font-size: 14px; color: var(--mark); text-decoration: none;
}
.go .go-back a:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .topcta { padding: 0 18px; font-size: 14.5px; }
  .go { padding: 76px 0 110px; }
  .go h1 { font-size: 31px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .last h2 { font-size: 32px; }
  .live-n { font-size: 54px; }
  .live-n small { font-size: 22px; }
  .try-big { font-size: 25px; }
  .try-second { font-size: 19px; }
  .grid4 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step { grid-template-columns: 1fr 244px; align-items: end; padding: 30px 28px 0; gap: 26px; }
  .step-copy { align-self: center; padding-bottom: 30px; }
  .shot { flex-basis: 240px; }
}
@media (min-width: 980px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr 320px; align-items: center; gap: 56px; }
  .hero-shot .phone { max-width: 320px; }
  h1 { font-size: 46px; }
  .block { padding: 76px 20px; }
}
