/* ShipHound site. Palette and type scale mirror src/lib/theme.ts in the app:
   ink ground, bone type, copper for labels, big type, nothing small. */
:root {
  --ink: #16141F;
  --surface: #262330;
  --bone: #F6F0E6;
  --fg2: rgba(246, 240, 230, 0.78);
  --fg3: rgba(246, 240, 230, 0.62);
  --hairline: rgba(246, 240, 230, 0.16);
  --copper: #D2652D;
  --copper-text: #E07A45;
  --sage: #5FAE7C;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* Grain: a fixed sheet of noise at low opacity, so the ink reads as the app's dark material */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 22px 32px;
}


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

/* Hero */
.icon {
  width: 96px;
  height: 96px;
  border-radius: 21px; /* iOS icon corner, about 22% of the side */
}

.eyebrow {
  margin: 36px 0 0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-text);
}

h1 {
  margin: 14px 0 0;
  font-size: clamp(38px, 9.5vw, 64px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.sub {
  margin: 18px 0 0;
  font-size: clamp(22px, 3.4vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg2);
  text-wrap: pretty;
}
.accent { color: var(--copper-text); font-style: normal; }

.nowrap { white-space: nowrap; }

/* The deep work bar, as on Home: mono label, copper numerals, the break's status on the right.
   It comes after the call to action and closes the hero. */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 440px;
  margin: 32px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  font-size: 16px;
  color: var(--fg3);
}
.bar-left { display: flex; align-items: center; gap: 10px; }
.bar-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.bar-clock { font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--copper-text); font-variant-numeric: tabular-nums; }
.bar.ready { background: var(--copper); color: var(--ink); cursor: pointer; }
.bar.ready:hover { background: var(--copper-text); }
.bar.ready:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.bar.ready .bar-label, .bar.ready .bar-clock { color: var(--ink); }
.bar.ready .bar-status { font-weight: 700; }
.bar.break .bar-clock { color: var(--sage); }

/* The one call to action */
.cta { margin: 40px 0 0; }

.button {
  display: inline-block;
  padding: 18px 30px;
  border-radius: 16px;
  background: var(--copper);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.button:hover { background: var(--copper-text); }

.support {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--fg3);
}

/* Apple's App Store badge, the hero's only action: never altered, well over Apple's 40px
   minimum, with clear space of a quarter of its height on every side. */
.badge { display: block; width: 180px; }
.badge img { display: block; width: 180px; height: 60px; }

/* Sections */
section { margin-top: 96px; }

h2 {
  margin: 0;
  font-size: clamp(26px, 4.5vw, 32px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Three features: a phone frame beside each */
.features { display: flex; flex-direction: column; gap: 64px; }

.feature {
  display: flex;
  align-items: center;
  gap: 28px;
}

.feature-text h2 { text-wrap: balance; }

.feature-text p {
  margin: 12px 0 0;
  font-size: 19px;
  line-height: 1.45;
  color: var(--fg2);
  text-wrap: pretty;
}

.shot {
  flex: 0 0 224px;
  width: 224px;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 32px;
  border: 1px solid var(--hairline);
  background: var(--surface);
}

/* Placeholders until the real screenshots and the recording land */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg3);
}

/* Frames alternate sides on wide screens, and stack on narrow ones */
@media (min-width: 561px) {
  .feature:nth-child(even) { flex-direction: row-reverse; }
}

/* On a wide window the features run past the text column, so the frames can grow
   without starving the copy beside them. */
@media (min-width: 800px) {
  .features { margin-left: -64px; margin-right: -64px; }
  .feature { gap: 36px; }
  .shot { flex-basis: 256px; width: 256px; border-radius: 36px; }
}

@media (max-width: 560px) {
  /* A tighter top on phones, so the button lands above the fold */
  main { padding-top: 40px; }
  .icon { width: 72px; height: 72px; border-radius: 16px; }
  .eyebrow { margin-top: 28px; }
  .cta { margin-top: 28px; }
  .bar { margin-top: 28px; }
  .feature { flex-direction: column; align-items: flex-start; gap: 20px; }
  .shot { flex-basis: auto; width: 200px; border-radius: 28px; align-self: center; }
}

/* Questions: one open at a time. Until the script runs every answer is visible. */
.faq h2 { margin-bottom: 20px; }

.qa { border-top: 1px solid var(--hairline); }
.qa:last-of-type { border-bottom: 1px solid var(--hairline); }

.faq h3 { margin: 0; }

.q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: none;
  color: var(--bone);
  font: inherit;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}
.q:hover { color: var(--copper-text); }
.q:focus-visible { outline: 2px solid var(--copper-text); outline-offset: 4px; border-radius: 4px; }

/* The chevron: points down closed, up open */
.q::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin: 0 6px 6px 0;
  border-right: 2px solid var(--fg3);
  border-bottom: 2px solid var(--fg3);
  transform: rotate(45deg);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.qa.open .q::after { transform: rotate(-135deg) translate(-3px, -3px); border-color: var(--copper-text); }

.a {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.32s ease;
}
.a > div { overflow: hidden; min-height: 0; }
.faq.ready .qa:not(.open) .a { grid-template-rows: 0fr; }

.a p {
  margin: 0;
  padding: 0 32px 20px 0;
  font-size: 19px;
  line-height: 1.45;
  color: var(--fg2);
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  .a, .q::after { transition: none; }
}

/* The closing call to action: the same button for anyone who read to the end.
   The section carries the gap above the footer's divider. */
.cta-end { padding-bottom: 64px; }
.cta-end .cta { margin-top: 24px; }

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: auto;
  padding-top: 64px;
  border-top: 1px solid var(--hairline);
  font-size: 16px;
  color: var(--fg3);
}

footer .colophon { flex-basis: 100%; margin: 0 0 12px; font-size: 16px; line-height: 1.45; color: var(--fg3); text-wrap: pretty; }

footer a { color: var(--fg3); text-decoration: none; }
footer a:hover { color: var(--bone); }

/* Terms and Privacy */
.home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.home img { width: 40px; height: 40px; border-radius: 9px; }

.doc h1 {
  margin-top: 32px;
  font-size: clamp(36px, 7vw, 46px);
  letter-spacing: -0.03em;
}

.doc .meta { margin: 10px 0 0; font-size: 16px; color: var(--fg3); }
.doc .lede { margin: 28px 0 0; font-size: 22px; line-height: 1.35; letter-spacing: -0.015em; }

.doc h2 {
  margin: 44px 0 10px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.doc p, .doc li {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--fg2);
}

.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc a { color: var(--copper-text); text-decoration: none; }
.doc a:hover { text-decoration: underline; }

