/* Throwday 2.0 website. Forest family from the native app (decision 0003):
   flat fills only, no gradients. Light is the default; dark follows the
   reader's system appearance. */

@font-face {
  font-family: Inter;
  src: url("/assets/inter-400-800-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --forest: #0a7d3e;
  --bright: #1faa5d;
  --deep: #041f16;
  --pale: #d6f5e1;
  --forest-surface: #1c5032;
  --chalk: #f7f8ef;

  --page: #ffffff;
  --band: var(--chalk);
  --ink: #10201a;
  --muted: #4b5a52;
  --line: #dfe6e0;
  --accent: var(--forest);
  --tint: var(--pale);
  --action: var(--forest);
  --action-ink: #ffffff;
  --card: #ffffff;
  --shadow: 0 24px 48px -18px rgb(4 31 22 / 0.35);

  color-scheme: light dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height, 4.5rem) + 1rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #08130e;
    --band: #13301f;
    --ink: #eef3ec;
    --muted: #a9b8ae;
    --line: #20342a;
    --accent: var(--bright);
    --tint: var(--forest-surface);
    --action: var(--bright);
    --action-ink: var(--deep);
    --card: #10221a;
    --shadow: 0 24px 48px -18px rgb(0 0 0 / 0.6);
  }
}

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

body {
  margin: 0;
  background: var(--page);
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.shell {
  width: min(72rem, calc(100% - 3rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: var(--chalk);
  color: var(--deep);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.on-deep :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--bright);
}

/* Header: always on the deep forest field, like the app icon. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--deep);
  color: var(--chalk);
  border-bottom: 1px solid rgb(247 248 239 / 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  flex: none;
}

.brand img {
  width: auto;
  height: 2.25rem;
}

.desktop-nav {
  display: flex;
  gap: 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav nav a {
  color: var(--chalk);
  text-decoration: none;
  opacity: 0.85;
}

.desktop-nav a:hover,
.mobile-nav nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons. On the deep field the pair is bright forest with deep forest
   text, as in the app's dark appearance. */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  background: var(--action);
  color: var(--action-ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button svg.apple {
  fill: currentColor;
  stroke: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: -0.15rem;
}

.on-deep .button,
.site-header .button {
  background: var(--bright);
  color: var(--deep);
}

.button--compact {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.text-link {
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  gap: 5px;
  padding: 0.85rem;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span {
  display: block;
  width: 1.3rem;
  height: 2px;
  background: var(--chalk);
  border-radius: 2px;
}

.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  display: grid;
  min-width: 13rem;
  padding: 0.5rem;
  border-radius: 1rem;
  background: var(--deep);
  border: 1px solid rgb(247 248 239 / 0.12);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
}

.mobile-nav nav a {
  padding: 0.75rem 0.9rem;
  border-radius: 0.6rem;
}

/* Hero */
.hero {
  background: var(--deep);
  color: var(--chalk);
  overflow: hidden;
  padding: 4.5rem 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  padding-bottom: 4.5rem;
}

.hero-body {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: rgb(247 248 239 / 0.82);
  max-width: 31rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.hero-actions .text-link {
  color: var(--chalk);
}

.availability {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: rgb(247 248 239 / 0.7);
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  padding-top: 1rem;
}

.hero-phones {
  --phone-cut: 5rem;
}

.hero-phones .phone {
  width: min(17rem, 44%);
  margin-bottom: calc(-1 * var(--phone-cut));
}

.hero-phones .phone:first-child {
  position: relative;
  transform: rotate(-4deg) translateX(0.4rem);
  z-index: 2;
}

.hero-phones .phone:last-child {
  transform: rotate(4deg) translate(-0.4rem, -2.5rem);
}

/* Phone screenshots: complete native captures, rounded like the device. */
.phone {
  margin: 0;
  width: min(18rem, 100%);
}

.phone img {
  width: 100%;
  border-radius: 12.5% / 5.75%;
  box-shadow: 0 0 0 1px rgb(4 31 22 / 0.1), var(--shadow);
  background: #fff;
}

/* A real export playing on an iPhone, as Photos shows a vertical video:
   full width, centered, under the Dynamic Island, with flat black above and
   below. The screen keeps the same proportions and corners as the
   screenshots. */
.phone--video .screen {
  position: relative;
  display: flex;
  align-items: center;
  aspect-ratio: 1320 / 2868;
  border-radius: 12.5% / 5.75%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 0.3rem #1b1f1d, 0 0 0 calc(0.3rem + 1px) rgb(247 248 239 / 0.16),
    0 28px 60px -20px rgb(0 0 0 / 0.7);
}

.phone--video .screen video,
.phone--video .screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  background: #000;
}

.phone--status {
  position: relative;
  container-type: inline-size;
}

.phone--video .island {
  position: absolute;
  top: 2.1%;
  left: 50%;
  width: 31%;
  height: 3.4%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 1;
}

.phone--video .screen {
  container-type: inline-size;
}

.phone--video .status-bar,
.phone--status .status-bar {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 6.6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 11% 8.5%;
  padding-top: 0.6%;
  color: #fff;
  z-index: 1;
}

.phone--video .status-time,
.phone--status .status-time {
  width: 22%;
  text-align: center;
  font-size: 5.4cqw;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.phone--video .status-icons,
.phone--status .status-icons {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
}

.phone--video .status-icons svg,
.phone--status .status-icons svg {
  display: block;
  height: 3.6cqw;
  width: auto;
  fill: currentColor;
}

.phone--video .status-icons .status-battery,
.phone--status .status-icons .status-battery {
  height: 4cqw;
}

.phone--video .home-indicator {
  position: absolute;
  bottom: 1.6%;
  left: 50%;
  width: 36%;
  height: 1.6cqw;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff;
}

/* The scorecard image Throwday exports, shown as the image itself. */
.share-image {
  margin: 0;
  align-self: center;
  width: min(22rem, 100%);
}

.share-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.9rem;
  box-shadow: 0 0 0 1px rgb(4 31 22 / 0.1), var(--shadow);
}

.on-deep .phone img {
  box-shadow: 0 0 0 1px rgb(247 248 239 / 0.12), 0 28px 60px -20px rgb(0 0 0 / 0.7);
}

/* Sections */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section--band {
  background: var(--band);
}

.section--deep {
  background: var(--deep);
  color: var(--chalk);
}

.section--deep p {
  color: rgb(247 248 239 / 0.82);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.feature--flip .feature-copy {
  order: 2;
}

.feature-copy {
  max-width: 34rem;
}

.feature-copy p {
  font-size: 1.08rem;
  color: var(--muted);
}

.section--deep .feature-copy p {
  color: rgb(247 248 239 / 0.82);
}

.feature-media {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.feature-media--pair .phone {
  width: min(15.5rem, 48%);
}

.feature-media--pair .phone:last-child {
  margin-top: 3.5rem;
}

.points {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1rem;
}

.points li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--muted);
}

.points li strong {
  color: var(--ink);
}

.section--deep .points li {
  color: rgb(247 248 239 / 0.82);
}

.section--deep .points li strong {
  color: var(--chalk);
}

.points svg {
  width: 1.6rem;
  height: 1.6rem;
  padding: 0.3rem;
  border-radius: 0.5rem;
  background: var(--tint);
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section--deep .points svg {
  background: var(--forest-surface);
  stroke: var(--bright);
}

/* Promises: three short columns. */
.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.promise {
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
}

.promise p {
  color: var(--muted);
  margin: 0;
}

.promise-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  background: var(--tint);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.promise-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Overlay styles */
.styles-intro {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.style-samples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.style-sample {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  margin: 0;
}

.style-sample img {
  display: block;
  width: 100%;
  height: auto;
}

.style-sample figcaption {
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 520px) {
  .style-samples {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
}

/* Maker letter */
.maker {
  max-width: 40rem;
  margin-inline: auto;
}

.maker-portrait {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.maker p {
  font-size: 1.1rem;
}

.maker-signoff {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  margin-top: 2rem;
}

.maker-signature {
  width: 9rem;
}

@media (prefers-color-scheme: dark) {
  .maker-signature {
    filter: invert(1);
  }
}

.maker-attribution {
  display: grid;
}

.maker-attribution a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.maker-role {
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  color: var(--muted);
  padding-bottom: 1.2rem;
  margin: 0;
}

/* Closing call to action */
.closing {
  text-align: center;
}

.closing .shell {
  display: grid;
  justify-items: center;
}

.closing-icon {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 22.5%;
  margin-bottom: 1.75rem;
}

.closing p {
  max-width: 34rem;
}

/* Articles: support, privacy, terms */
.article-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 1.5rem;
}

.article-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
}

.article-hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 44rem;
}

.article-body {
  padding-bottom: 5rem;
}

.article-body > section {
  max-width: 46rem;
}

.article-body section {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.article-body h2 {
  font-size: 1.45rem;
}

.article-body p,
.article-body li {
  color: var(--muted);
}

.article-body ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body strong {
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--deep);
  color: var(--chalk);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgb(247 248 239 / 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid p {
  color: rgb(247 248 239 / 0.7);
  max-width: 22rem;
  margin-top: 1rem;
}

.site-footer h2 {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(247 248 239 / 0.6);
  margin-bottom: 1rem;
}

.site-footer nav {
  display: grid;
  gap: 0.2rem;
  align-content: start;
}

.site-footer nav a,
.footer-bottom a {
  padding-block: 0.4rem;
  color: var(--chalk);
  text-decoration: none;
  opacity: 0.85;
}

.site-footer nav a:hover,
.footer-bottom a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(247 248 239 / 0.12);
  font-size: 0.9rem;
  color: rgb(247 248 239 / 0.7);
}

/* Responsive */
@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero-grid,
  .feature,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-copy {
    padding-bottom: 1rem;
    text-align: left;
  }

  .hero-phones .phone {
    width: min(15rem, 45%);
  }

  .feature--flip .feature-copy {
    order: 0;
  }

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

  .footer-grid > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .promises {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .shell {
    width: calc(100% - 2.5rem);
  }

  .header-actions > .button {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
  }

  .header-actions > .button svg {
    display: none;
  }

  /* Paired screens swipe side by side, each large enough to read. */
  .feature-media--pair {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }

  .feature-media--pair > * {
    flex: 0 0 74%;
    scroll-snap-align: center;
  }

  .feature-media--pair .phone,
  .feature-media--pair .phone:last-child {
    width: auto;
    margin-top: 0;
  }

  .brand img {
    height: 2rem;
  }

  .hero-phones .phone {
    width: 46%;
    margin-bottom: -3.5rem;
  }

  .feature-media .phone {
    width: min(16rem, 78%);
  }

  .maker-signoff {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .faq-list summary span {
    transition: none;
  }
}
