/* Tugback marketing site. Uses tokens from tokens.css (generated from brand/tokens.json). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sea); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--surface-100); padding: 10px 16px; border-radius: var(--radius-md); z-index: 10; }
.skip:focus { top: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding: clamp(48px, 7vw, 96px) clamp(16px, 5vw, 80px); }
.section--raised { background: var(--surface-200); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--harbor); color: var(--on-harbor); }
.stack { display: flex; flex-direction: column; gap: 40px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tug-text); }
.section--dark .eyebrow { color: var(--tug); }
.h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6.4vw, 80px); line-height: 0.98; letter-spacing: -0.03em; }
.h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-muted); max-width: 560px; }
.section--dark .lead { color: var(--on-harbor-muted); }
.muted { color: var(--ink-muted); }
.heading-block { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-md); border: 0; font-family: var(--font-body); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--tug); color: var(--on-tug); }
.btn--primary:hover { color: var(--on-tug); filter: brightness(1.05); }
.btn--lg { min-height: 56px; padding: 0 26px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.site-header { padding: 20px clamp(16px, 5vw, 80px); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.nav__links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 0; }

/* Hero */
.hero { padding-top: clamp(24px, 5vw, 64px); }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__art { flex: 1 1 440px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__art-frame { background: var(--sea-tint); border-radius: 28px; padding: clamp(16px, 3vw, 36px) clamp(12px, 2vw, 28px) 12px; overflow: hidden; }
.hero__art figcaption { font-size: 14px; color: var(--ink-muted); text-align: center; }
.pill { align-self: flex-start; background: var(--tug-tint); color: var(--ink); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: var(--radius-pill); }

/* Join form */
.join { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.join__row { display: flex; flex-wrap: wrap; gap: 10px; }
.join__input { flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 18px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface-200); color: var(--ink); font-family: var(--font-body); font-size: 16px; }
.join__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-muted); }
.join__consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--sea); }
.join__error { margin: 0; color: var(--late); font-size: 14px; font-weight: 700; }
.join__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.section--dark .join { margin: 0 auto; width: 100%; }
.section--dark .join__input { background: #ffffff; color: #0f2a33; border-color: #6f8a93; }
.section--dark .join__consent { color: var(--on-harbor-muted); }
.section--dark .join__consent a { color: var(--on-harbor); }
.section--dark .join__error { color: #ffb08f; }

.joined { display: none; flex-direction: column; gap: 12px; max-width: 560px; }
.is-joined .join { display: none; }
.is-joined .joined { display: flex; }
.joined__ok { background: var(--won-tint); color: var(--ink); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; gap: 14px; align-items: center; text-align: left; }
.joined__tick { width: 40px; height: 40px; flex: none; border-radius: 20px; background: var(--won); color: var(--surface-100); display: flex; align-items: center; justify-content: center; }
.joined__ok strong { display: block; font-size: 17px; }
.joined__ok span { font-size: 15px; color: var(--ink-muted); }
.price-q { background: var(--surface-200); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.price-q__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.price-q__opts button { height: 48px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface-100); color: var(--ink); font-family: var(--font-body); font-size: 16px; font-weight: 700; cursor: pointer; }
.price-q__thanks { margin: 0; font-size: 15px; color: var(--ink-muted); display: none; }
.is-answered .price-q { display: none; }
.is-answered .price-q__thanks { display: block; }
.section--dark .price-q__thanks { color: var(--on-harbor-muted); }

/* Cards and grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface-200); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.card p { margin: 0; color: var(--ink-muted); }
.quote { background: var(--surface-100); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.quote p { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.2; }
.quote span { font-size: 14px; color: var(--ink-muted); }
.step-num { width: 44px; height: 44px; border-radius: 22px; background: var(--tug); color: var(--on-tug); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature h3 { margin: 0; font-size: 20px; }
.feature p { margin: 0; color: var(--ink-muted); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sea-tint); color: var(--sea); display: flex; align-items: center; justify-content: center; }

/* Ladder */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); }
.split__main { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ladder { margin: 0; padding: 0; list-style: none; }
.ladder li { display: flex; gap: 16px; }
.ladder__rail { display: flex; flex-direction: column; align-items: center; width: 36px; flex: none; }
.ladder__dot { width: 36px; height: 36px; border-radius: 18px; border: 2px solid rgba(243, 239, 231, 0.45); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--on-harbor); }
.ladder__dot--done { background: var(--sea); border-color: var(--sea); }
.ladder__dot--next { background: var(--tug); border-color: var(--tug); color: #0f2a33; }
.ladder__line { flex: 1; width: 2px; min-height: 16px; background: rgba(243, 239, 231, 0.22); }
.ladder li:last-child .ladder__line { background: transparent; }
.ladder__text { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 18px; }
.ladder__title { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.ladder__title strong { font-size: 18px; }
.ladder__title span, .ladder__text > span { font-size: 15px; color: var(--on-harbor-muted); }
.ladder__title span { font-size: 13px; }

/* Phone mock (static illustration) */
.phone { flex: 0 1 340px; min-width: 0; margin: 0 auto; width: 100%; max-width: 340px; background: #071419; border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.phone__screen { background: #f7f3ec; color: #0f2a33; border-radius: 34px; padding: 28px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.phone__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.phone__meta { font-size: 13px; color: #4d5e65; margin-top: -8px; }
.phone__card { background: #ffffff; border: 2px solid #e9a27c; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.phone__chip { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #fce3d6; color: #9a3412; }
.phone__desc { font-size: 13px; color: #4d5e65; line-height: 1.4; }
.phone__btn { height: 44px; border-radius: 12px; background: #f2602d; color: #0f2a33; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.phone__msg { background: #ffffff; border: 1px solid #dcd5c8; border-radius: 18px; padding: 14px; font-size: 13px; line-height: 1.55; }
.phone__bar { display: flex; gap: 6px; }
.phone__bar span { flex: 1; height: 5px; border-radius: 3px; background: #eee8dd; }
.phone__bar .done { background: #1f6f78; }
.phone__bar .next { background: #f2602d; }

/* Letter */
.split--reverse { flex-wrap: wrap-reverse; }
.letter-art { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.paper { background: #ffffff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 8px; transform: rotate(-1.5deg); box-shadow: var(--shadow-card); max-width: 460px; }
.paper__from { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #4d5e65; }
.paper__line { height: 8px; background: #eee8dd; border-radius: 4px; }
.paper__line--hl { background: #fde4d8; }
.w72 { width: 72%; } .w94 { width: 94%; } .w64 { width: 64%; } .w86 { width: 86%; }
.plain { background: var(--harbor); color: var(--on-harbor); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; max-width: 460px; margin-left: clamp(0px, 4vw, 48px); }
.plain__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tug); }
.plain__text { font-size: 17px; line-height: 1.5; }
.plain__deadline { display: flex; justify-content: space-between; gap: 12px; background: rgba(242, 96, 45, 0.16); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.plain__deadline strong { color: var(--tug); }

/* Pricing */
.pricing { text-align: center; align-items: center; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; width: 100%; text-align: left; }
.plan { background: var(--surface-200); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.plan--founding { background: var(--harbor); color: var(--on-harbor); border-color: var(--harbor); }
.plan__name { font-weight: 700; color: var(--ink-muted); }
.plan--founding .plan__name, .plan--founding .plan__note, .plan--founding .plan__per { color: var(--on-harbor-muted); }
.plan__price { font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: -0.02em; }
.plan__per { font-size: 18px; color: var(--ink-muted); font-family: var(--font-body); letter-spacing: 0; }
.plan__note { font-size: 14px; color: var(--ink-muted); }
.plan ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.plan__badge { position: absolute; top: -14px; right: 20px; background: var(--tug); color: var(--on-tug); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-pill); }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq h2 { text-align: center; margin-bottom: 16px; }
.faq details { background: var(--surface-200); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 12px 0 0; color: var(--ink-muted); }

/* Final CTA + footer */
.cta { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta__logo { height: 40px; width: auto; }
.cta .h1 { font-size: clamp(40px, 5.6vw, 72px); }
.site-footer { padding: 28px clamp(16px, 5vw, 80px); background: var(--harbor); color: var(--on-harbor-muted); border-top: 1px solid rgba(243, 239, 231, 0.14); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--on-harbor); }

/* Simple text pages (privacy, 404) */
.page { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) clamp(16px, 5vw, 32px) 96px; }
.page h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 8px; }
.page h2 { font-size: 22px; margin: 36px 0 8px; }
.page p, .page li { color: var(--ink); }
.page .muted { color: var(--ink-muted); }

.joined__tick svg { stroke: #ffffff; }

@media (max-width: 640px) {
  .nav { flex-wrap: nowrap; }
  .nav__links a:not(.btn) { display: none; }
  .nav__links .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .nav__logo img { height: 30px; }
  .join__row .btn { flex: 1 1 100%; }
  .pill { font-size: 12px; }
}

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