/* Tsip marketing site — dark only. Palette + type per website/DESIGN.md.
   No JS anywhere; hover color transitions are the only motion. */

:root {
  --bg: #101013;
  --surface: #1A1A1F;
  --surface-2: #24242B;
  --surface-3: #2E2E36;
  --text: #F4F4F2;
  --text-muted: #9A9AA3;
  --text-faint: #64646E;
  --border: #2C2C34;
  --accent: #FFC53D;
  --accent-deep: #E8AB1E;
  --accent-ink: #201700;
  --positive: #3FBF7F;
  --gold: #E8B923;
  --shadow: rgba(0, 0, 0, 0.45);

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid #FFC53D;
  outline-offset: 2px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.wordmark:hover,
.wordmark:focus-visible {
  text-decoration: none;
}

.wordmark .dot {
  color: var(--accent);
}

.header-link {
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--text);
  text-decoration: none;
}

/* --- Kicker label --- */
.kicker {
  font-family: var(--body);
  font-weight: 600;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  padding: 16px 32px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(255, 197, 61, 0.25);
  transition: background 150ms ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-deep);
  text-decoration: none;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: default;
}

.store-badge .badge-top {
  font-family: var(--body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.store-badge .badge-bottom {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-faint);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 96px 0 64px;
}

.squiggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 16px;
  pointer-events: none;
}

.bunting {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 14px;
  display: flex;
  gap: 78px;
  justify-content: flex-end;
  padding-right: 24px;
  pointer-events: none;
}

.bunting span {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 14px solid var(--surface-2);
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 0 0 55%;
  max-width: 55%;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.chip {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.chip .free {
  color: var(--positive);
}

.chip .ads {
  color: var(--text-faint);
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 24px 0 0;
}

.hero-subline {
  font-family: var(--body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 44ch;
  margin: 20px 0 0;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 36px;
}

/* --- Hero owe card --- */
.card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.owe-card,
.card-behind {
  border-radius: 26px;
}

.card-behind {
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px) rotate(3deg);
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: 0;
}

.owe-card {
  position: relative;
  z-index: 1;
  transform: rotate(-2deg);
  overflow: hidden;
  background: linear-gradient(160deg, #FFCF57 0%, #FFC53D 55%, #F0B028 100%);
  box-shadow: 0 24px 64px var(--shadow);
  color: var(--accent-ink);
  padding: 28px 28px 40px;
}

.owe-card::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  bottom: -12px;
  height: 24px;
  background: radial-gradient(circle 12px at 12px 12px, var(--bg) 11px, transparent 12px);
  background-size: 31px 24px;
  background-repeat: repeat-x;
}

.owe-label {
  font-family: var(--body);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0;
}

.owe-who {
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  opacity: 0.85;
  margin: 40px 0 0;
}

.owe-amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  margin: 0;
}

.owe-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  margin: 28px 0 0;
}

.owe-meta {
  font-family: var(--body);
  font-weight: 400;
  font-size: 13px;
  opacity: 0.75;
  margin: 4px 0 0;
}

/* --- Section shared --- */
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 8px 0 0;
}

/* --- Screenshot strip --- */
.shots {
  padding: 64px 0;
  text-align: center;
}

.shots .kicker,
.shots h2 {
  text-align: center;
}

.strip {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  justify-content: safe center;
  padding: 32px 0 8px;
}

.strip::-webkit-scrollbar {
  display: none;
}

.shot {
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: center;
}

.shot img {
  width: 280px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px var(--shadow);
}

.shot-caption {
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* --- Scallop divider --- */
.scallop {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 24px;
  background: radial-gradient(circle 12px at 12px 12px, var(--bg) 11px, var(--surface) 12px);
  background-size: 31px 24px;
  background-repeat: repeat-x;
}

.scallop.flip {
  transform: scaleY(-1);
}

/* --- Features band --- */
.features {
  background: var(--surface);
}

.features-inner {
  padding: 80px 0;
}

.features h2 {
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  color: var(--text);
  margin: 18px 0 0;
}

.tile p {
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 10px 0 0;
}

.swatch-strip {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.swatch-strip span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* --- Closing CTA --- */
.closing {
  padding: 96px 0;
  text-align: center;
}

.closing h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.closing-subline {
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

.closing .btn-primary {
  margin-top: 32px;
}

.closing-note {
  font-family: var(--body);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-faint);
  margin: 16px 0 0;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 48px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer-brand .wordmark {
  font-size: 18px;
}

.footer-tagline {
  font-family: var(--body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.footer-meta {
  font-family: var(--body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-faint);
  margin-top: 24px;
}

/* --- Legal pages --- */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}

.effective {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 16px;
}

.legal-intro {
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 24px;
}

.legal section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.legal h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--text);
  margin: 0;
}

.legal p,
.legal li {
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal p {
  margin: 12px 0 0;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal li {
  margin-top: 6px;
}

.legal li::marker {
  color: var(--accent);
}

.legal a {
  color: var(--accent);
}

/* --- Responsive: single breakpoint --- */
@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .squiggle,
  .bunting {
    display: none;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .hero-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-text {
    flex: 1 1 auto;
    max-width: 100%;
    text-align: left;
  }

  h1 {
    font-size: 40px;
  }

  .hero-subline {
    font-size: 17px;
  }

  .card-stack {
    max-width: 340px;
    margin: 40px auto 0;
  }

  .owe-card {
    transform: rotate(-1deg);
  }

  h2 {
    font-size: 28px;
  }

  .shot {
    width: 240px;
  }

  .shot img {
    width: 240px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .features-inner {
    padding: 56px 0;
  }

  .closing {
    padding: 64px 0;
  }

  .closing h2 {
    font-size: 34px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal h1 {
    font-size: 32px;
  }
}

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

  .btn-primary {
    transition: none;
  }
}
