/* HushTuck website. Tokens come from docs/brand/tokens.json in the app repo. */

/* Fonts are self-hosted so visitors' browsers contact no third party.
   Fraunces and Jost are SIL Open Font License; see assets/fonts/OFL-*.txt. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f7f1e4;
  --card: #fffaf0;
  --ink: #2c3a40;
  --ink-muted: #5f6a64;
  --hairline: rgba(44, 58, 64, 0.16);
  --olive: #6b7140;
  --on-olive: #ffffff;
  --sienna: #9c5815;
  --on-sienna: #ffffff;
  --buff: #ebd3a2;
  --on-buff: #2c3a40;
  --slate: #34454c;

  --display: "Fraunces", Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --label: "Jost", Futura, "Century Gothic", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 10px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 24px;
  --space-7: 40px;

  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --page: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c2528;
    --card: #2a373c;
    --ink: #efe6d2;
    --ink-muted: #a9ada0;
    --hairline: rgba(239, 230, 210, 0.16);
    --olive: #a9ae76;
    --on-olive: #1c2528;
    --sienna: #e0934d;
    --on-sienna: #1c2528;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: var(--olive);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.wrap {
  width: min(var(--page), 100% - 2 * var(--space-5));
  margin-inline: auto;
}

/* Type */

.eyebrow {
  margin: 0 0 var(--space-3);
  font-family: var(--label);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
  color: var(--ink);
}

h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

p {
  margin: 0;
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 34em;
}

.muted {
  color: var(--ink-muted);
}

.small {
  font-size: 14px;
  line-height: 1.5;
}

/* Skip link: appears only when focused from the keyboard. */
.skip-link {
  position: absolute;
  left: var(--space-5);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--olive);
  color: var(--on-olive);
  font: 600 15px/1.2 var(--ui);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

/* Header */

.site-header {
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.nav a:not(.button):hover {
  color: var(--olive);
}

@media (max-width: 720px) {
  .nav a:not(.button) {
    display: none;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--olive);
  color: var(--on-olive);
  font: 600 16px/1.2 var(--ui);
  text-decoration: none;
  cursor: pointer;
  transition: filter 160ms ease-out;
}

.button:hover {
  filter: brightness(1.08);
}

.button.secondary {
  background: transparent;
  color: var(--olive);
  border-color: var(--olive);
}

.button.small {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 14px;
}

.strike {
  text-decoration: line-through;
  opacity: 0.7;
  font-weight: 400;
}

/* Hero */

.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.hero-copy > * + * {
  margin-top: var(--space-6);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.fine-print {
  font-size: 14px;
  color: var(--ink-muted);
}

.hero-art {
  position: relative;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 520px;
  }
}

/* The REC pill: sienna means recording and nothing else. */
.rec-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 12px 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--sienna);
  color: var(--on-sienna);
  font: 600 13px/1 var(--ui);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.rec-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--on-sienna);
}

/* Sections */

.section {
  padding-block: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--hairline);
}

.section-head {
  max-width: 40em;
  margin-bottom: var(--space-7);
}

.section-head p {
  margin-top: var(--space-5);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}

.step {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--hairline);
}

/* The character always stands on buff, so he reads in dark mode too. */
.step-figure {
  width: 168px;
  height: 168px;
  margin: 0 0 var(--space-5);
}

/* Phones and tablets: illustration beside the step's title, to cut scrolling. */
@media (max-width: 860px) {
  .step {
    display: grid;
    grid-template-columns: 104px 1fr;
    column-gap: var(--space-5);
    align-items: start;
  }

  .step-figure {
    grid-row: 1 / span 3;
    width: 104px;
    height: 104px;
    margin: 0;
  }

  .step > :not(.step-figure) {
    grid-column: 2;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .step {
    grid-template-columns: 80px 1fr;
  }

  .step-figure {
    width: 80px;
    height: 80px;
  }
}

.step h3 + p {
  margin-top: var(--space-3);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Menu mock: shows what the app looks like, in native macOS style. */

.menu-mock {
  width: min(340px, 100%);
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1d1d1f;
  font: 13px/18px var(--ui);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

@media (prefers-color-scheme: dark) {
  .menu-mock {
    background: rgba(40, 40, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f5f5f7;
  }
}

.menu-mock .row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 3px 10px;
  border-radius: 5px;
}

.menu-mock .row.selected {
  background: #0a64d8;
  color: #fff;
}

.menu-mock .sep {
  height: 1px;
  margin: 5px 10px;
  background: currentColor;
  opacity: 0.14;
}

/* Checkmark sits in a gutter before the label, like a native menu. */
.menu-mock .row > span:first-child {
  padding-left: 16px;
  position: relative;
}

.menu-mock .check > span:first-child::before {
  content: "✓";
  position: absolute;
  left: 0;
}

.menu-mock .dim {
  opacity: 0.55;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7) var(--space-6);
}

.feature h3 {
  margin-bottom: var(--space-3);
}

@media (min-width: 561px) {
  .features.two-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 6vw, 72px);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Uses */

.uses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.uses li {
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--buff);
  color: var(--on-buff);
}

.uses strong {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
}

@media (max-width: 860px) {
  .uses {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .uses {
    grid-template-columns: 1fr;
  }
}

.guardrail {
  margin-top: var(--space-6);
  max-width: 44em;
}

/* Beta offer */

.offer {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--slate);
  color: #efe6d2;
}

.offer-copy {
  padding: clamp(28px, 5vw, 56px);
}

.offer-copy > * + * {
  margin-top: var(--space-5);
}

.offer .eyebrow {
  color: var(--buff);
}

.offer h2 {
  color: #efe6d2;
}

.price {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
}

.price .now {
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
}

.price .price-note {
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.35;
  opacity: 0.85;
}

.offer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer li {
  position: relative;
  padding-left: 26px;
  margin-top: var(--space-3);
}

.offer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--buff);
}

.offer a:focus-visible {
  outline-color: var(--buff);
}

.offer .button {
  background: var(--buff);
  color: var(--on-buff);
}

.offer .fine-print {
  color: rgba(239, 230, 210, 0.78);
}

.offer-art {
  position: relative;
  min-height: 320px;
  background: #3d5058;
}

@media (max-width: 860px) {
  .offer {
    grid-template-columns: 1fr;
  }

  /* Keep the turtle's feet in view: crop the art from the top, never the ground. */
  .offer-art {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* FAQ */

.faq {
  max-width: 760px;
}

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

.faq summary {
  padding-block: var(--space-5);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-size: 19px;
  font-weight: 600;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--ui);
  font-weight: 400;
  color: var(--olive);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 0;
  padding-bottom: var(--space-5);
  color: var(--ink-muted);
  max-width: 40em;
}

/* Legal pages: one readable column in the site's type. */

.legal {
  padding-block: clamp(40px, 7vw, 80px) clamp(56px, 8vw, 96px);
}

.prose {
  max-width: 42em;
}

.legal h1 {
  font-size: clamp(34px, 5vw, 48px);
}

.legal .updated {
  margin-top: var(--space-4);
}

.legal .summary {
  margin-top: var(--space-7);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--hairline);
}

.legal .summary h2 {
  margin-top: 0;
  font-size: 20px;
}

.prose h2 {
  margin-top: var(--space-7);
  font-size: 24px;
  line-height: 1.2;
}

.prose h3 {
  margin-top: var(--space-6);
  font-size: 18px;
}

.prose p,
.prose ul {
  margin-top: var(--space-4);
}

.prose ul {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: var(--space-2);
}

.prose strong {
  font-weight: 600;
}

/* Thanks page, after checkout. */

.thanks {
  padding-block: clamp(40px, 7vw, 80px) clamp(56px, 8vw, 96px);
}

.thanks .wrap {
  max-width: 40em;
}

.thanks .wrap > * + * {
  margin-top: var(--space-5);
}

.thanks-figure {
  width: 144px;
  height: 144px;
}

.thanks h1 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
}

.thanks-steps {
  margin: var(--space-6) 0 0;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--hairline);
  list-style-position: inside;
}

.thanks-steps li + li {
  margin-top: var(--space-5);
}

.thanks-steps .button {
  display: flex;
  width: fit-content;
  margin-top: var(--space-4);
}

/* Footer */

.site-footer {
  padding-block: var(--space-7);
  border-top: 1px solid var(--hairline);
}

.site-footer .wrap {
  display: grid;
  gap: var(--space-4);
}

.site-footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
}

.site-footer .social-label {
  font-family: var(--label);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
}

.site-footer .social {
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.site-footer nav a {
  display: inline-block;
  padding-block: 10px;
}

.site-footer a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--olive);
}

/* The menu bar icon is a black template image; light it up on dark grounds, as macOS does. */
@media (prefers-color-scheme: dark) {
  .template-icon {
    filter: invert(0.93);
  }
}

/* Illustration shapes: flat, four colors, overlaps darken like offset ink. */
.art-multiply {
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
  .art-multiply {
    mix-blend-mode: normal;
  }
}
