/* Tiny Talks — offer page (claim.tinytalksdiaries.com). Phone first. */

:root {
  --mint: #46c195;
  --mint-deep: #1b6b52;
  --mint-soft: #e3f6ec;
  --mint-wash: #f1faf6;
  --peach: #ffe8d9;
  --peach-deep: #b8572a;
  --ink: #17251f;
  --ink-2: #4a5a53;
  --ink-3: #7b8a83;
  --line: #e2ece7;
  --card: #ffffff;
  --bg: #f6faf8;
  --danger: #b4302a;
  --danger-soft: #fdecea;
  --warn: #8a5a0b;
  --warn-soft: #fff4dc;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(23, 37, 31, 0.04), 0 10px 30px rgba(23, 37, 31, 0.07);
  --font: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.5 var(--font);
  color: var(--ink);
  background:
    radial-gradient(520px 340px at 0% 0%, #d8f3e6 0%, transparent 70%),
    radial-gradient(420px 300px at 100% 8%, #ffeadb 0%, transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--mint-deep); }
button { font: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 4px;
  max-width: 480px; width: 100%; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 18px; letter-spacing: -0.01em; }
.brand img { display: block; }
.mode {
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px;
  background: var(--warn-soft); color: var(--warn);
}

.app {
  width: 100%; max-width: 480px; margin: 0 auto; padding: 8px 16px 28px; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start;
}

/* ---------- loading ---------- */

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, #edf3f0, #f7faf9, #edf3f0);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.hero-sk { height: 150px; }
.card-sk { height: 190px; }
.card-sk.short { height: 120px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- hero ---------- */

.hero { padding: 14px 4px 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.01em;
  padding: 5px 11px; border-radius: 99px; background: var(--mint-soft); color: var(--mint-deep);
}
.chip.peach { background: var(--peach); color: var(--peach-deep); }
.hero h1 { font-size: 31px; line-height: 1.12; font-weight: 900; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .lead { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; white-space: pre-line; }

/* ---------- cards ---------- */

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }

.price { position: relative; overflow: hidden; }
.price::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, var(--mint-soft), transparent 70%); pointer-events: none;
}
.price .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price .now { font-size: 40px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.price .per { color: var(--ink-2); font-weight: 800; font-size: 16px; }
.price .was { color: var(--ink-3); text-decoration: line-through; font-weight: 700; font-size: 18px; }
.save {
  font-size: 13px; font-weight: 900; padding: 4px 10px; border-radius: 99px;
  background: var(--mint); color: #fff; box-shadow: 0 4px 12px rgba(70, 193, 149, 0.35);
}
.price .terms { margin-top: 6px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.price .free { font-size: 40px; font-weight: 900; color: var(--mint); letter-spacing: -0.03em; }
.facts { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.facts .ico {
  flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  background: var(--mint-wash); font-size: 17px;
}
.facts strong { color: var(--ink); font-weight: 800; }
.testcard {
  margin-top: 14px; padding: 10px 12px; border-radius: 14px; font-size: 13px; font-weight: 700;
  background: var(--warn-soft); color: var(--warn);
}
.testcard code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }

/* ---------- steps ---------- */

.steps { display: flex; align-items: center; gap: 6px; padding: 2px 4px; min-width: 0; }
.step { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ink-3); white-space: nowrap; min-width: 0; }
.step .label { overflow: hidden; text-overflow: ellipsis; }
.step b {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px;
  background: #e9f0ed; color: var(--ink-3);
}
.step.on { color: var(--ink); }
.step.on b { background: var(--mint); color: #fff; box-shadow: 0 0 0 4px var(--mint-soft); }
.step.done b { background: var(--mint-deep); color: #fff; }
.step b { flex: none; }
.step-line { flex: 1 1 10px; height: 2px; border-radius: 2px; background: var(--line); min-width: 6px; }

/* ---------- action card ---------- */

.act h2 { font-size: 20px; font-weight: 900; letter-spacing: -0.01em; }
.act .hint { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.signin { display: grid; gap: 10px; margin-top: 16px; }
.gbtn { min-height: 44px; display: flex; justify-content: center; }
.btn {
  appearance: none; border: 0; cursor: pointer; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 22px; border-radius: 18px;
  font: inherit; font-weight: 900; font-size: 17px; text-decoration: none; letter-spacing: 0.005em;
  transition: transform 0.08s ease, background 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.primary {
  background: linear-gradient(180deg, #4fcd9f, var(--mint));
  color: #fff; box-shadow: 0 10px 24px rgba(70, 193, 149, 0.38), inset 0 -2px 0 rgba(0, 0, 0, 0.06);
}
.btn.primary .arrow { font-size: 20px; line-height: 1; }
.btn.apple { background: #111; color: #fff; min-height: 46px; border-radius: 99px; font-size: 15.5px; font-weight: 700; }
.btn.apple svg { width: 17px; height: 17px; fill: currentColor; }
.btn.soft { background: var(--mint-wash); color: var(--mint-deep); min-height: 48px; font-size: 15.5px; }
.btn.ghost { background: transparent; color: var(--ink-2); min-height: 40px; font-size: 14.5px; font-weight: 800; }
.btn.busy { pointer-events: none; opacity: 0.8; }
.btn.busy::after {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.who {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 14px;
  padding: 10px 12px; border-radius: 16px; background: var(--mint-wash);
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--mint); color: #fff; font-weight: 900;
}
.who .grow { flex: 1; min-width: 0; }
.who .email { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .sub { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.who button {
  border: 0; background: transparent; color: var(--mint-deep); font-size: 14px; font-weight: 800; cursor: pointer; padding: 6px;
}
.small { margin-top: 10px; text-align: center; color: var(--ink-3); font-size: 13px; font-weight: 600; }

.note { border-radius: 16px; padding: 12px 14px; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.note + .note, .note + .btn, .note + .signin, .note + .stack { margin-top: 12px; }
.note.info { background: var(--mint-wash); color: var(--ink-2); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.error { background: var(--danger-soft); color: var(--danger); }
.note.ok { background: var(--mint-soft); color: var(--mint-deep); }
.stack { display: grid; gap: 10px; }
.act > .note { margin-bottom: 12px; }

.copyrow { display: flex; gap: 8px; }
.copyrow input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px;
  font: inherit; font-size: 14px; color: var(--ink); background: #fff;
}
.copyrow .btn { width: auto; min-height: 46px; padding: 8px 16px; font-size: 15px; }

/* ---------- features ---------- */

.section-title { font-size: 13px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 6px 4px 0; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feature { background: var(--card); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.feature .emoji {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 21px;
  background: var(--mint-wash); margin-bottom: 10px;
}
.feature h3 { font-size: 15px; font-weight: 900; line-height: 1.25; }
.feature p { margin-top: 3px; color: var(--ink-2); font-size: 13.5px; line-height: 1.4; font-weight: 600; }

/* ---------- FAQ ---------- */

.faq { padding: 6px 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 15px 28px 15px 0; position: relative;
  font-weight: 800; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-52%);
  font-size: 22px; color: var(--mint); font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 15px; color: var(--ink-2); font-size: 15px; font-weight: 600; }

/* ---------- done ---------- */

.done { text-align: center; padding: 28px 22px 24px; overflow: hidden; position: relative; }
.done .art {
  width: 168px; height: 168px; margin: 4px auto 18px; border-radius: 50%;
  background: url("/offer-static/celebrate.png") center / cover no-repeat, var(--mint-wash);
  box-shadow: 0 0 0 8px var(--mint-wash), 0 18px 40px rgba(70, 193, 149, 0.25);
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
.done h1 { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.done .lead { margin-top: 8px; color: var(--ink-2); font-size: 16.5px; font-weight: 600; }
.done .until {
  display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: 99px;
  background: var(--mint-soft); color: var(--mint-deep); font-weight: 900; font-size: 15px;
}
.done ol { list-style: none; counter-reset: s; margin: 22px 0 18px; padding: 0; text-align: left; display: grid; gap: 12px; }
.done li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--ink-2); }
.done li::before {
  content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint-wash); color: var(--mint-deep); font-weight: 900; font-size: 14px;
}
.done .stack { margin-top: 4px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; opacity: 0.9;
  animation: fall 2.6s ease-in forwards;
}
@keyframes fall { to { transform: translateY(460px) rotate(540deg); opacity: 0; } }

/* ---------- footer + dock ---------- */

.foot {
  text-align: center; color: var(--ink-3); font-size: 13px; font-weight: 600;
  padding: 10px 20px calc(96px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 6px;
  max-width: 480px; margin: 0 auto;
}
.foot nav { display: flex; gap: 8px; justify-content: center; }
.foot a { color: var(--ink-3); }
.noscript { text-align: center; padding: 20px; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  animation: rise 0.2s ease-out;
}
.dock .what { flex: none; display: grid; line-height: 1.15; }
.dock .what strong { font-size: 19px; font-weight: 900; }
.dock .what span { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.dock .btn { min-height: 50px; font-size: 16px; }
@keyframes rise { from { transform: translateY(100%); } }

@media (min-width: 560px) {
  .app { padding-top: 18px; }
  .hero h1 { font-size: 36px; }
  .dock { left: 50%; right: auto; width: 480px; transform: translateX(-50%); border-radius: 22px 22px 0 0; border: 1px solid var(--line); border-bottom: 0; }
  @keyframes rise { from { transform: translate(-50%, 100%); } to { transform: translateX(-50%); } }
}
