/*
  tarpp website. The app's palette and type (CLAUDE.md, Appearance.swift and Typography.swift):
  the page, cards, ink, grey and teal text, and mint only where the app uses it (the main action and
  a good status). Light and dark follow the visitor's system setting.
  Layout: one centred column (max 1120px) with 20px gutters; sections stack, and two-column
  rows (words beside a phone) fall to one column below 860px.
*/

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #FAFAF7;
  --card: #FFFFFF;
  --nested: #F6F6F7;
  --ink: #1A1B2E;
  --muted: #5F5F69;
  --line: rgba(26, 27, 46, 0.10);
  --accent: #0B7F75;
  --mint: #5EEAD4;
  --on-mint: #1A1B2E;
  --frame: #0B0B0C;
  --shadow: 0 1px 2px rgba(26, 27, 46, 0.05), 0 8px 24px rgba(26, 27, 46, 0.06);
  --phone-shadow-near: rgba(26, 27, 46, 0.10);
  --phone-shadow-far: rgba(26, 27, 46, 0.30);
  --focus: #1A1B2E;
  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius: 16px;
  --inner: 12px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #151515;
    --card: #20201F;
    --nested: #292927;
    --ink: #F1ECDD;
    --muted: #A3A3A3;
    --line: rgba(241, 236, 221, 0.10);
    --accent: #48CDB9;
    --on-mint: #1A1B2E;
    --frame: #000000;
    --shadow: none;
    --phone-shadow-near: rgba(0, 0, 0, 0.35);
    --phone-shadow-far: rgba(0, 0, 0, 0.70);
    --focus: #F1ECDD;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--card);
  border-radius: var(--inner);
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 20px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.015em;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
.lede {
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 34em;
}
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}

/* ---- Header ---- */

.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  padding: 6px 0;
}
.brand img {
  height: 32px;
  width: auto;
}
.nav {
  display: flex;
  gap: 4px 22px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 0;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

/* ---- Buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
}
.button-primary {
  background: var(--mint);
  color: var(--on-mint);
}
.button-primary:hover {
  filter: brightness(0.96);
}
.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--card);
}
.button.is-soon {
  cursor: default;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.note {
  font-size: 14px;
  color: var(--muted);
}

/* ---- Sections ---- */

section {
  padding-block: clamp(56px, 8vw, 104px);
}
.section-head {
  display: grid;
  gap: 14px;
  max-width: 44em;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}

/* A phone: the screenshot in a dark rounded frame. */
.phone {
  justify-self: center;
  width: min(100%, 300px);
  padding: 10px;
  border-radius: 46px;
  background: var(--frame);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.phone img {
  width: 100%;
  border-radius: 37px;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
}

/*
  Angled phones: CSS 3D on the same screenshots and frame, so they stay sharp. Each gets a soft
  shadow cast the way its angle would cast it; nothing moves. Narrow screens get milder angles
  (below), and every angled phone stays inside its own column so nothing scrolls sideways.
*/
.hero-phones {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  padding-block: 12px 28px;
}
.hero-phones .phone-front {
  position: relative;
  z-index: 1;
  width: 68%;
  margin-left: 2%;
  justify-self: auto;
  box-shadow: 0 2px 6px var(--phone-shadow-near), 0 34px 70px -18px var(--phone-shadow-far), 0 0 0 1px var(--line);
}
/* Behind, to the right, turned slightly away so the front phone leads. */
.hero-phones .phone-behind {
  position: absolute;
  z-index: 0;
  top: 9%;
  right: 0;
  width: 58%;
  transform: perspective(1400px) rotateY(-18deg) rotateZ(2deg);
  transform-origin: 100% 50%;
  box-shadow: 18px 28px 60px -20px var(--phone-shadow-far), 0 0 0 1px var(--line);
}
/* Turned about 16° toward the words on its right; the shadow falls away to the left. */
.phone-turned {
  transform: perspective(1400px) rotateY(16deg);
  box-shadow: -26px 30px 60px -22px var(--phone-shadow-far), -2px 2px 6px var(--phone-shadow-near), 0 0 0 1px var(--line);
}
/* Laid back, as if resting on a table: the top recedes, the shadow spreads below it. */
.phone-resting {
  transform: perspective(1500px) rotateX(34deg) rotateZ(-7deg);
  transform-origin: 50% 60%;
  box-shadow: 0 46px 50px -26px var(--phone-shadow-far), 0 4px 10px var(--phone-shadow-near), 0 0 0 1px var(--line);
}
/* The last card: a phone rising in from its lower edge. */
.callout-phone {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
  align-items: center;
  min-height: 360px;
}
.callout-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
  min-width: 0;
}
.phone-peek {
  align-self: start;
  width: 240px;
  justify-self: center;
  margin-bottom: -320px;
  transform: rotate(-6deg);
  box-shadow: 0 24px 60px -18px var(--phone-shadow-far), 0 0 0 1px var(--line);
}
.store-slot {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.plans-subscribe {
  margin-top: 22px;
  font-weight: 500;
}

/* How it works: three steps, each words over a phone. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}
.step-number {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
}
/* The steps in one column, beside a phone. */
.steps-stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  margin-top: 8px;
}
/* The number beside its heading and words. */
.steps-stacked .step {
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 6px;
}
.steps-stacked .step-number {
  grid-row: span 2;
}
.steps-stacked .step h3 {
  padding-top: 5px;
}
.price {
  font-variant-numeric: tabular-nums;
}
.plan-alt {
  margin-top: 6px;
}
.plan-alt .badge {
  margin-left: 6px;
}
.plans-note {
  margin-top: 8px;
  max-width: 44em;
}
.more-link {
  margin-top: 24px;
}
.footer-stack {
  display: grid;
  gap: 16px;
}
.step .phone {
  margin-top: 10px;
  width: min(100%, 260px);
}

.band {
  background: var(--card);
  border-block: 1px solid var(--line);
}

/* Features: a grid of quiet cards. */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.feature svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
}
.feature p {
  color: var(--muted);
  font-size: 15px;
}

/* A row of words beside a phone. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split .copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.checks svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  stroke: var(--ink);
}

/* Pricing. */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
  box-shadow: var(--shadow);
  min-width: 0;
}
.plan-pro {
  border-color: var(--ink);
}
.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.price {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price .per {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--on-mint);
}
.badge-quiet {
  background: var(--nested);
  color: var(--ink);
}

/* FAQ. */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  padding: 20px 32px 20px 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq .answer {
  padding-bottom: 22px;
  display: grid;
  gap: 12px;
  color: var(--muted);
}
.faq .answer ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  gap: 18px;
  justify-items: start;
}

/* Long-form pages: FAQ, Support, Privacy, Terms. */
.page-head {
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px);
  display: grid;
  gap: 14px;
}
.not-found {
  min-height: 52vh;
  align-content: center;
  padding-bottom: clamp(56px, 8vw, 96px);
}
.prose {
  max-width: 44em;
  padding-bottom: clamp(56px, 8vw, 96px);
  display: grid;
  gap: 16px;
}
.prose h2 {
  font-size: 24px;
  margin-top: 24px;
}
.prose h3 {
  margin-top: 8px;
}
.prose ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.prose p,
.prose li {
  color: var(--ink);
}
/* No bold anywhere, as in the app: emphasis is Medium. */
strong,
b {
  font-weight: 500;
}
.prose .callout h2 {
  margin-top: 0;
}
.prose .note {
  color: var(--muted);
}
.draft {
  border: 1px solid var(--line);
  background: var(--nested);
  border-radius: var(--inner);
  padding: 14px 16px;
  font-size: 15px;
}
.draft strong {
  font-weight: 500;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card-link {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  display: grid;
  gap: 6px;
}
.card-link:hover {
  border-color: var(--muted);
}
.card-link span {
  color: var(--muted);
  font-size: 15px;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 44px 56px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}
.footer-links {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
}
.footer-links a {
  text-decoration: none;
  padding: 6px 0;
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-brand img {
  height: 24px;
  width: auto;
}
.disclaimer {
  margin-top: 28px;
  max-width: 62em;
  line-height: 1.55;
}
.disclaimer.copyright {
  margin-top: 12px;
}
.social {
  display: flex;
  gap: 16px;
}
.social[hidden],
.social a[hidden] {
  display: none;
}

/* Light and dark versions of an image: only the matching one shows. */
.only-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .only-light {
    display: none;
  }
  .only-dark {
    display: block;
  }
}

/* ---- Narrower screens ---- */

@media (max-width: 860px) {
  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split .phone {
    width: min(100%, 270px);
    margin-inline: auto;
  }
  /* Milder angles at this width, and the phones kept inside the column. */
  .hero-phones {
    width: min(100%, 360px);
  }
  .hero-phones .phone-behind {
    transform: perspective(1400px) rotateY(-12deg) rotateZ(2deg);
  }
  .phone-turned {
    transform: perspective(1400px) rotateY(8deg);
  }
  .phone-resting {
    transform: perspective(1600px) rotateX(16deg) rotateZ(-4deg);
  }
  .callout-phone {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .phone-peek {
    width: min(70%, 220px);
    margin-top: 8px;
    margin-bottom: -280px;
    transform: rotate(-4deg);
  }
  /* Words first on a narrow screen, whichever side the phone is on. */
  .split .copy {
    order: -1;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan {
    padding: 22px;
  }
  .nav {
    gap: 4px 16px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
