/* TeeMate — shared styles
   Atria-inspired system: white pages, near-black ink, pastel iridescent
   gradients, serif display headlines (Instrument Serif) + Inter for UI.
   Brand name "TeeMate" is a placeholder; colors all live in the tokens below. */

:root {
  --ink: #111013;
  --ink-2: #67626e;
  --paper: #ffffff;
  --cream: #faf8f6;
  --line: #eae7ef;
  --pink: #ffd9ec;
  --lav: #e5d9ff;
  --mint: #d4f3e1;
  --peach: #ffeacf;
  --accent: #6b4eff;
  --radius: 18px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ios: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  font: 600 15px/1 var(--font); transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-grass {
  background: var(--ink); color: #fff;
  box-shadow: 0 6px 18px rgba(17, 16, 19, .18);
}
.btn-grass:hover { background: #2a2731; box-shadow: 0 10px 26px rgba(17, 16, 19, .26); transform: translateY(-1px); }
.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: #cfc9dc; }
.btn-dark { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-dark:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  max-width: 1080px; margin: 0 auto; padding: 20px 24px;
}
.logo {
  font-family: var(--serif); font-weight: 400; font-size: 26px;
  color: var(--ink); letter-spacing: -.015em; line-height: 1;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 10px 20px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(720px 420px at 18% -8%, var(--pink) 0%, transparent 55%),
    radial-gradient(760px 460px at 82% -12%, var(--lav) 0%, transparent 58%),
    radial-gradient(900px 520px at 50% 118%, var(--mint) 0%, transparent 55%),
    var(--cream);
  color: var(--ink);
  padding: 138px 24px 96px;
  text-align: center;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.015em;
  max-width: 820px; margin: 0 auto 22px;
}
.hero h1 em { font-style: italic; }
.hero .sub { color: var(--ink-2); font-size: 18px; max-width: 620px; margin: 0 auto 44px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }

/* ---------- demo player ---------- */
.player {
  position: relative; max-width: 880px; margin: 0 auto;
  border-radius: 24px; overflow: hidden;
  background: #0f0e13;
  border: 1px solid rgba(17, 16, 19, .08);
  box-shadow: 0 30px 80px rgba(60, 40, 120, .18);
  aspect-ratio: 16 / 9;
}
.player video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
@keyframes pop { from { opacity: 0; transform: translateY(7px) scale(.97); } to { opacity: 1; transform: none; } }

.player-cover {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(15, 14, 19, .35); backdrop-filter: blur(2px);
  border: none; cursor: pointer; transition: opacity .3s ease;
}
.player-cover.hidden { opacity: 0; pointer-events: none; }
.bigplay {
  width: 76px; height: 76px; border-radius: 999px; display: grid; place-items: center;
  background: #fff; color: var(--ink);
  font-size: 26px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
}
.player-cover:hover .bigplay { transform: scale(1.08); }
.player-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 26px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(8, 7, 12, .8));
  color: #e8e5f0; font-size: 12px;
}
.player-bar .track { flex: 1; height: 4px; border-radius: 99px; background: rgba(255,255,255,.22); overflow: hidden; cursor: pointer; }
.player-bar .fill { height: 100%; width: 0; background: #fff; border-radius: 99px; }
.player-bar .tag { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; color: rgba(255,255,255,.55); }

/* ---------- sections ---------- */
.section { padding: 96px 24px; }
.section.tint {
  background:
    radial-gradient(700px 400px at 12% 0%, rgba(255, 217, 236, .55) 0%, transparent 55%),
    radial-gradient(700px 420px at 88% 100%, rgba(229, 217, 255, .55) 0%, transparent 55%),
    var(--cream);
}
.kicker {
  display: block; text-align: center; font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px;
}
.section h2 {
  text-align: center; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 4.2vw, 3rem); letter-spacing: -.01em; line-height: 1.1;
  margin-bottom: 14px;
}
.section h2 em { font-style: italic; }
.section .lead { text-align: center; color: var(--ink-2); max-width: 580px; margin: 0 auto 56px; font-size: 16.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 8px 30px rgba(60, 40, 120, .06);
}
.step-num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lav), var(--pink)); color: var(--ink);
  font-weight: 700; font-size: 14px; margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
.step p { color: var(--ink-2); font-size: 14.5px; }
.step .quote { font-family: var(--serif); font-style: italic; color: var(--ink); }

/* ---------- iMessage mockups (how-it-works) ---------- */
.imsg {
  font-family: var(--ios);
  margin-top: 18px; border: 1px solid #e6e3ec; border-radius: 20px;
  overflow: hidden; background: #fff;
  box-shadow: 0 10px 30px rgba(60, 40, 120, .08);
}
.imsg-head {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 10px 7px; background: #f8f8fa;
  border-bottom: .5px solid #d9d9de;
}
.imsg-avatar {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(180deg, #a6aab5, #8e929e); font-size: 17px;
}
.imsg-name { font-size: 10.5px; color: #3c3c43; }
.imsg-name::after { content: " ›"; color: #b0b0b6; }
.imsg-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 14px; background: #fff; }
.imsg-stamp {
  text-align: center; font-size: 10px; font-weight: 500; color: #8e8e93; margin-bottom: 8px;
}
.imsg-stamp b { font-weight: 600; }
.ib {
  position: relative; max-width: 86%; padding: 7px 12px; border-radius: 17px;
  font-size: 12.5px; line-height: 1.38; text-align: left;
}
.ib.gray { background: #e9e9eb; color: #000; align-self: flex-start; }
.ib.blue { background: linear-gradient(180deg, #43a4ff, #0a7cff); color: #fff; align-self: flex-end; }
.ib.gray + .ib.gray { border-top-left-radius: 6px; }
.ib.gray:has(+ .ib.gray) { border-bottom-left-radius: 6px; }
.ib.blue + .ib.blue { border-top-right-radius: 6px; }
.ib.blue:has(+ .ib.blue) { border-bottom-right-radius: 6px; }
/* bubble tails */
.ib.tail.gray::before {
  content: ""; position: absolute; bottom: 0; left: -7px; width: 18px; height: 18px;
  background: #e9e9eb; border-bottom-right-radius: 15px; z-index: 0;
}
.ib.tail.gray::after {
  content: ""; position: absolute; bottom: 0; left: -13px; width: 13px; height: 18px;
  background: #fff; border-bottom-right-radius: 9px;
}
.ib.tail.blue::before {
  content: ""; position: absolute; bottom: 0; right: -7px; width: 18px; height: 18px;
  background: #0a7cff; border-bottom-left-radius: 15px;
}
.ib.tail.blue::after {
  content: ""; position: absolute; bottom: 0; right: -13px; width: 13px; height: 18px;
  background: #fff; border-bottom-left-radius: 9px;
}
/* tapback reaction */
.ib.reacted { margin-top: 16px; overflow: visible; }
.tapback {
  position: absolute; top: -17px; font-size: 11px; line-height: 1;
  background: #e9e9eb; border: 2px solid #fff; border-radius: 999px; padding: 5px 7px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.ib.blue .tapback { left: -10px; }
.ib.gray .tapback { right: -10px; background: #0a7cff; }
.imsg-note { align-self: flex-end; font-size: 9.5px; font-weight: 500; color: #8e8e93; margin: 1px 5px 0 0; }
.imsg-lines { display: grid; gap: 3px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 22px; justify-content: center; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px;
  position: relative; display: flex; flex-direction: column;
}
.plan.popular { border: 1.5px solid var(--ink); box-shadow: 0 18px 50px rgba(107, 78, 255, .14); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(120deg, var(--pink), var(--lav)); color: var(--ink);
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 5px 14px; white-space: nowrap;
}
.plan h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.plan .plan-sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price b { font-size: 44px; letter-spacing: -.03em; font-weight: 700; }
.price span { color: var(--ink-2); font-size: 15px; }
.price-note { font-size: 13px; color: var(--ink-2); margin-bottom: 22px; }
.price-note s { color: #aaa5b5; }
.plan ul { list-style: none; margin: 0 0 26px; display: grid; gap: 9px; }
.plan li { font-size: 14px; color: var(--ink-2); display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--ink); font-weight: 700; }
.plan .btn { margin-top: auto; }
.pricing-fine { text-align: center; color: var(--ink-2); font-size: 13px; margin-top: 26px; }

/* ---------- faq ---------- */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 4px; font-weight: 600; font-size: 16px; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--ink-2); font-weight: 300; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 4px 20px; color: var(--ink-2); font-size: 15px; max-width: 92%; }

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--pink) 0%, var(--lav) 48%, var(--mint) 100%);
  border-radius: 28px; color: var(--ink); text-align: center; padding: 72px 32px;
}
.cta-band h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem); margin-bottom: 12px; letter-spacing: -.01em;
}
.cta-band h2 em { font-style: italic; }
.cta-band p { color: #4c4756; margin-bottom: 32px; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #fff; padding: 56px 24px 28px; overflow: hidden; }
.foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .logo {
  background: linear-gradient(120deg, var(--pink), var(--lav) 55%, var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot-links { display: flex; gap: 20px; margin-left: auto; }
.foot-links a { font-size: 13.5px; color: rgba(255,255,255,.6); }
.foot-links a:hover { color: #fff; }
.foot-copy { width: 100%; font-size: 12.5px; color: rgba(255,255,255,.4); margin-top: 10px; }
.foot-mark {
  font-family: var(--serif); font-weight: 400; text-align: center;
  font-size: clamp(4.5rem, 17vw, 12rem); line-height: .95; letter-spacing: -.02em;
  margin-top: 40px; margin-bottom: -2vw;
  background: linear-gradient(120deg, var(--pink), var(--lav) 45%, var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}

/* ---------- checkout ---------- */
.co-page { background: var(--cream); min-height: 100vh; }
.co-nav { position: static; padding: 22px 24px; }
.co-nav .logo, .co-nav .back { color: var(--ink); }
.co-nav .back { margin-left: auto; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.co-nav .back:hover { color: var(--ink); }
.co-wrap {
  max-width: 980px; margin: 0 auto; padding: 12px 24px 80px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start;
}
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: 0 8px 30px rgba(60, 40, 120, .05); }
.co-form h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.01em; margin-bottom: 6px; }
.co-form .co-sub { color: var(--ink-2); font-size: 14.5px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  font: 400 15px var(--font); background: #fdfcfe; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(107, 78, 255, .14); }
.field input.invalid { border-color: #e05d5d; box-shadow: 0 0 0 3px rgba(224,93,93,.12); }
.field .err { display: none; color: #c04848; font-size: 12.5px; margin-top: 5px; }
.field.show-err .err { display: block; }

.plan-picker { display: grid; gap: 12px; margin: 22px 0 26px; }
.plan-opt { position: relative; display: block; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt .opt-card {
  border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px;
  display: flex; align-items: center; gap: 14px; transition: all .15s ease; background: #fdfcfe;
}
.plan-opt input:checked + .opt-card { border-color: var(--ink); background: #f7f4ff; box-shadow: 0 0 0 3px rgba(107, 78, 255, .12); }
.opt-radio { width: 20px; height: 20px; border-radius: 99px; border: 2px solid #cfc9dc; flex-shrink: 0; display: grid; place-items: center; }
.plan-opt input:checked + .opt-card .opt-radio { border-color: var(--ink); }
.plan-opt input:checked + .opt-card .opt-radio::after { content: ""; width: 10px; height: 10px; border-radius: 99px; background: var(--ink); }
.opt-main { flex: 1; }
.opt-main b { font-size: 15px; display: block; }
.opt-main span { font-size: 13px; color: var(--ink-2); }
.opt-price { text-align: right; }
.opt-price b { font-size: 17px; display: block; }
.opt-price span { font-size: 12px; color: var(--ink-2); }
.opt-save {
  background: linear-gradient(120deg, var(--pink), var(--lav)); color: var(--ink);
  font-size: 11.5px; font-weight: 700;
  border-radius: 999px; padding: 4px 10px; margin-left: 6px; vertical-align: 2px;
}
.co-secure { display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--ink-2); font-size: 13px; margin-top: 14px; }

.summary { position: sticky; top: 24px; }
.summary h2 { font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.sum-line { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink-2); padding: 7px 0; }
.sum-line.save { color: var(--accent); font-weight: 600; }
.sum-line.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; color: var(--ink); font-weight: 700; font-size: 16px; }
.sum-fine { font-size: 12.5px; color: #aaa5b5; margin-top: 14px; }

/* ---------- modal ---------- */
.modal-veil {
  position: fixed; inset: 0; z-index: 50; display: none; place-items: center;
  background: rgba(17, 16, 19, .45); backdrop-filter: blur(4px); padding: 24px;
}
.modal-veil.open { display: grid; }
.modal {
  background: #fff; border-radius: 26px; max-width: 430px; width: 100%;
  padding: 36px 32px; text-align: center; animation: pop .3s ease;
}
.modal .modal-ico {
  width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--pink), var(--lav) 55%, var(--mint)); font-size: 28px;
}
.modal h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 10px; letter-spacing: -.01em; }
.modal p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 12px; }
.modal p b { color: var(--ink); }
.modal .btn { margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: minmax(0, 400px); }
  .co-wrap { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .hero { padding-top: 116px; }
  .card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modal { animation: none; }
}
