/* Gratlock marketing site */

:root {
  --parchment: #fff8e8;
  --parchment-raised: #fffcf4;
  --sunflower: #f4c43a;
  --sunflower-bright: #ffc82e;
  --sunflower-wash: #fff1be;
  --cocoa: #272018;
  --cocoa-muted: #6d6257;
  --amber: #c88818;
  --hairline: #e6d4ae;
  --night: #1d1713;
  --night-raised: #2c211b;
  --rust: #7a3b2e;
  --peach: #e37b4c;
  --warm-white: #fff8ec;
  --serif: "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --rounded: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(58, 36, 15, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--parchment);
  color: var(--cocoa);
  font-family: var(--rounded);
  font-size: 17px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--rust);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--amber);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.wide-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 12.5ch;
  font-size: clamp(48px, 4.6vw, 66px);
  line-height: 1.01;
}

h2 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.03;
}

h3 {
  font-size: 25px;
  line-height: 1.15;
}

/* Header */

header.site {
  position: relative;
  z-index: 20;
  padding: 24px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-link {
  display: inline-flex;
  flex: 0 0 auto;
}

header.site img.wordmark {
  width: auto;
  height: 46px;
}

header.site nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

header.site nav a {
  color: var(--cocoa-muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

header.site nav a:hover {
  color: var(--cocoa);
}

header.site nav a.nav-download {
  border: 1px solid var(--cocoa);
  border-radius: 999px;
  color: var(--cocoa);
  padding: 9px 17px 10px;
  transition: background 160ms ease, color 160ms ease;
}

header.site nav a.nav-download:hover {
  background: var(--cocoa);
  color: var(--parchment);
}

/* Hero */

.hero-section {
  border: 0;
  min-height: 700px;
  overflow: hidden;
  padding: 26px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.78fr);
  align-items: start;
  gap: clamp(48px, 7vw, 92px);
}

.hero-copy {
  padding: 92px 0 40px;
}

.hero-copy .eyebrow {
  margin-bottom: 22px;
}

.hero-copy .lede {
  max-width: 570px;
  margin-top: 28px;
  color: var(--cocoa-muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.store-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
}

.store-badge {
  display: inline-block;
  flex: 0 0 auto;
  transition: transform 150ms ease, filter 150ms ease;
}

.store-badge:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.store-badge img {
  width: 184px;
  height: auto;
}

.store-note {
  color: var(--cocoa-muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-art {
  display: flex;
  min-height: 620px;
  align-items: flex-start;
  justify-content: center;
}

.hero-stage-shell {
  width: min(100%, 500px);
  padding: 7px;
  border: 1px solid rgba(39, 32, 24, 0.07);
  border-radius: 48px;
  background: rgba(39, 32, 24, 0.045);
  box-shadow: 0 34px 90px rgba(58, 36, 15, 0.13);
}

.hero-stage {
  position: relative;
  height: 600px;
  overflow: hidden;
  border-radius: 41px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.65), transparent 22%),
    linear-gradient(145deg, #f3c94e 0%, #f8db80 48%, #fff0be 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(122, 59, 46, 0.08);
}

.stage-flower {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 8px 16px rgba(122, 59, 46, 0.12));
}

.hero-stage .hero-phone {
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 36px;
  width: 258px;
  overflow: hidden;
  border: 7px solid #171411;
  border-radius: 46px;
  background: #171411;
  box-shadow:
    0 28px 58px rgba(58, 36, 15, 0.2),
    0 3px 10px rgba(58, 36, 15, 0.12);
}

.hero-phone img {
  width: 100%;
}

.stage-note {
  position: absolute;
  z-index: 2;
  bottom: 34px;
  left: 24px;
  width: 176px;
  padding: 16px 18px 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: var(--night);
  box-shadow: 0 18px 45px rgba(58, 36, 15, 0.18);
  color: var(--warm-white);
}

.stage-note span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 248, 236, 0.56);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-note strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
}

.screenshot-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(39, 32, 24, 0.08);
  border-radius: 34px;
  background: var(--parchment-raised);
  box-shadow: var(--shadow);
}

.story-shot::after,
.journal-shot::after,
.privacy-shot::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

/* Editorial statement */

.manifesto {
  border: 0;
  background: var(--sunflower);
  padding: 82px 0 92px;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 48px;
}

.manifesto .eyebrow {
  color: rgba(39, 32, 24, 0.66);
  padding-top: 13px;
}

.manifesto h2 {
  max-width: 13ch;
}

.manifesto p:not(.eyebrow) {
  max-width: 660px;
  margin-top: 24px;
  font-size: 20px;
}

/* How it works */

.how-section {
  border: 0;
  padding: 120px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 48px;
  margin-bottom: 70px;
}

.section-heading .eyebrow {
  padding-top: 12px;
}

.section-heading h2 {
  max-width: 13ch;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.75fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.story-shot {
  width: min(100%, 480px);
  border: 8px solid var(--night);
  border-radius: 50px;
  transform: rotate(-1.6deg);
}

.story-shot-dark {
  background: var(--night);
}

.editorial-steps {
  list-style: none;
}

.editorial-steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 32px 0 34px;
  border-top: 1px solid var(--hairline);
}

.editorial-steps li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.step-number {
  padding-top: 4px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.editorial-steps p {
  max-width: 510px;
  margin-top: 10px;
  color: var(--cocoa-muted);
}

/* Journal */

.journal-section {
  border: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(244, 196, 58, 0.2), transparent 28%),
    linear-gradient(135deg, var(--night), #321c17 60%, #4d231b);
  color: var(--warm-white);
  padding: 112px 0 0;
}

.journal-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  align-items: end;
  gap: clamp(50px, 9vw, 120px);
}

.journal-copy {
  align-self: center;
  padding-bottom: 110px;
}

.journal-copy h2 {
  max-width: 11ch;
  margin-top: 20px;
}

.journal-copy > p:not(.eyebrow):not(.journal-pullquote) {
  max-width: 510px;
  margin-top: 24px;
  color: rgba(255, 248, 236, 0.7);
  font-size: 19px;
}

.journal-pullquote {
  max-width: 450px;
  margin-top: 44px;
  padding-left: 22px;
  border-left: 2px solid var(--sunflower);
  color: var(--warm-white);
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  line-height: 1.35;
}

.journal-shot {
  width: min(100%, 500px);
  max-height: 720px;
  border: 8px solid var(--night);
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  transform: translateY(2px) rotate(1deg);
}

/* Research */

.research-section {
  border: 0;
  padding: 120px 0;
}

.research-heading {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 64px;
}

.research-heading .eyebrow {
  padding-top: 12px;
}

.research-heading h2 {
  max-width: 13ch;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--cocoa);
  border-bottom: 1px solid var(--cocoa);
}

.research-card {
  display: flex;
  min-width: 0;
  min-height: 390px;
  flex-direction: column;
  padding: 38px 34px 34px;
  border-right: 1px solid var(--hairline);
}

.research-card:last-child {
  border-right: 0;
}

.research-card .stat {
  color: var(--rust);
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 78px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.research-card .stat span {
  font-size: 16px;
  letter-spacing: 0;
}

.research-card h3 {
  margin-top: 26px;
}

.research-card > p:not(.stat) {
  margin-top: 14px;
  color: var(--cocoa-muted);
  font-size: 15px;
}

.research-card a {
  margin-top: auto;
  padding-top: 28px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* Privacy */

.privacy-section {
  border: 0;
  overflow: hidden;
  background: #f4e7c9;
  padding: 105px 0 0;
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) 1fr;
  align-items: center;
  gap: clamp(48px, 9vw, 120px);
}

.privacy-shot {
  width: min(100%, 470px);
  max-height: 690px;
  border: 8px solid var(--night);
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.privacy-copy {
  padding-bottom: 92px;
}

.privacy-copy h2 {
  max-width: 10ch;
  margin-top: 20px;
}

.privacy-copy p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 22px;
  color: var(--cocoa-muted);
  font-size: 18px;
}

.text-link {
  display: inline-block;
  margin-top: 30px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

/* Final CTA */

.final-cta {
  border: 0;
  background: var(--sunflower);
  padding: 100px 0 104px;
  text-align: center;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.final-cta .eyebrow {
  color: rgba(39, 32, 24, 0.62);
}

.final-cta h2 {
  max-width: 13ch;
  margin-top: 20px;
}

.final-cta .store-badge {
  margin-top: 34px;
}

.final-note {
  margin-top: 14px;
  color: rgba(39, 32, 24, 0.67);
  font-size: 12px;
}

/* Legal pages */

main.legal {
  padding: 48px 0 24px;
}

main.legal h1 {
  max-width: none;
  margin-bottom: 8px;
  font-size: 40px;
}

main.legal .updated {
  margin-bottom: 32px;
  color: var(--cocoa-muted);
  font-size: 14px;
}

main.legal h2 {
  margin: 36px 0 12px;
  font-size: 26px;
  line-height: 1.2;
}

main.legal p,
main.legal li {
  max-width: 65ch;
  margin-bottom: 12px;
}

main.legal ul {
  margin-bottom: 16px;
  padding-left: 22px;
}

/* Footer */

footer.site {
  background: var(--night);
  color: var(--warm-white);
  padding: 58px 0 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 60px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--warm-white);
  text-decoration: none;
}

.footer-brand img {
  width: 158px;
  height: auto;
}

.affiliation {
  max-width: 510px;
  margin-top: 18px;
  color: rgba(255, 248, 236, 0.68);
  font-size: 14px;
}

footer.site nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

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

footer.site .legal-line {
  max-width: 830px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 248, 236, 0.1);
  color: rgba(255, 248, 236, 0.42);
  font-size: 11px;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .manifesto-grid,
  .section-heading,
  .story-grid,
  .journal-grid,
  .research-heading,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 44px;
  }

  .hero-copy {
    padding: 48px 0 0;
  }

  .hero-art {
    width: min(100%, 500px);
    margin: 42px auto 0;
  }

  .manifesto-grid,
  .section-heading,
  .research-heading {
    gap: 18px;
  }

  .manifesto .eyebrow,
  .section-heading .eyebrow,
  .research-heading .eyebrow {
    padding-top: 0;
  }

  .story-shot {
    justify-self: center;
    width: min(74vw, 460px);
  }

  .journal-grid,
  .privacy-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
    gap: 42px;
  }

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

  .research-card {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .research-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .wide-wrap {
    width: min(100% - 34px, 1180px);
  }

  header.site {
    padding: 18px 0;
  }

  header.site img.wordmark {
    height: 37px;
  }

  header.site nav {
    gap: 14px;
  }

  header.site nav a:not(.nav-download) {
    display: none;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(45px, 13vw, 59px);
  }

  h2 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .hero-section {
    min-height: 0;
    padding: 36px 0 76px;
  }

  .hero-copy .lede {
    margin-top: 24px;
    font-size: 18px;
  }

  .hero-copy {
    padding-top: 24px;
  }

  .store-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
  }

  .hero-art {
    margin-top: 28px;
    min-height: 540px;
  }

  .hero-stage-shell {
    padding: 5px;
    border-radius: 38px;
  }

  .hero-stage {
    height: 530px;
    border-radius: 33px;
  }

  .hero-stage .hero-phone {
    top: 22px;
    right: 50%;
    width: 226px;
    border-width: 6px;
    border-radius: 40px;
    transform: translateX(50%);
  }

  .stage-flower {
    top: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
  }

  .stage-note {
    display: none;
  }

  .manifesto {
    padding: 66px 0 72px;
  }

  .manifesto p:not(.eyebrow) {
    font-size: 18px;
  }

  .how-section,
  .research-section {
    padding: 86px 0;
  }

  .section-heading,
  .research-heading {
    margin-bottom: 48px;
  }

  .story-grid {
    gap: 56px;
  }

  .story-shot {
    width: 88vw;
  }

  .editorial-steps li {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .journal-section {
    padding-top: 84px;
  }

  .journal-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .journal-copy,
  .privacy-copy {
    padding-bottom: 34px;
  }

  .journal-shot,
  .privacy-shot {
    justify-self: center;
    width: min(88vw, 480px);
  }

  .privacy-section {
    padding-top: 82px;
  }

  .privacy-shot {
    grid-row: 2;
  }

  .privacy-copy {
    grid-row: 1;
  }

  .final-cta {
    padding: 82px 0 86px;
  }

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

  footer.site nav {
    justify-content: flex-start;
  }
}
