@font-face { font-family: "Familjen Grotesk"; src: url("../assets/fonts/FamiljenGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("../assets/fonts/FamiljenGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("../assets/fonts/FamiljenGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
/* Grumble website - shared styles
   Tokens from Grumble Design System v1.0 (Studio Novera / Matt Cleverley).
   PP Hatton Medium for headlines. Familjen Grotesk (self-hosted, SIL OFL) for everything else.
*/

@font-face {
  font-family: "PP Hatton";
  src: url("../assets/fonts/PPHatton-Medium.otf") format("opentype"),
       url("../assets/fonts/PPHatton-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
:root {
  --aubergine-lightest: #EAE8EA;
  --aubergine-lighter:  #D6D1D5;
  --aubergine-light:    #72606C;
  --aubergine:          #361C2E;
  --aubergine-dark:     #2B1624;
  --aubergine-darker:   #150B12;
  --aubergine-darkest:  #10080D;

  --fig-lightest: #EEEDEF;
  --fig-lighter:  #DEDBDF;
  --fig-light:    #8C8290;
  --fig:          #5C4D61;
  --fig-dark:     #493D4D;

  --cashew-lightest: #FCFCFB;
  --cashew-lighter:  #FAF9F8;
  --cashew-light:    #EEEAE7;
  --cashew:          #E8E2DE;
  --cashew-dark:     #B9B4B1;

  --oat-lightest: #FAF9F8;
  --oat-lighter:  #F6F3F2;
  --oat-light:    #DFD7D3;
  --oat:          #D2C7C1;

  --lemon-curd-lightest: #FFFCF1;
  --lemon-curd:          #FFE37A;
  --lemon-curd-darker:   #665A30;

  --text-primary: var(--aubergine);
  --text-secondary: var(--aubergine-light);
  --text-on-dark: var(--cashew-lightest);
  --text-on-dark-secondary: var(--fig-lighter);
  --surface-page: var(--cashew-light);
  --surface-card: var(--cashew-lighter);
  --surface-card-raised: var(--cashew-lightest);
  --border-default: var(--cashew-dark);
  --border-on-dark: var(--fig);
  --accent: var(--lemon-curd);
  --accent-text: var(--aubergine);

  --font-display: "PP Hatton", "Gloock", "Playfair Display", Georgia, serif;
  --font-body: "Familjen Grotesk", "Hanken Grotesk", Inter, system-ui, sans-serif;

  --radius-small: 8px;
  --radius-medium: 16px;
  --radius-content: 20px;
  --radius-large: 24px;
  --radius-pill: 999px;

  --shadow-small: 0 2px 4px rgba(16, 8, 13, 0.06), 0 4px 8px rgba(16, 8, 13, 0.10);
  --shadow-medium: 0 4px 6px rgba(16, 8, 13, 0.03), 0 12px 16px rgba(16, 8, 13, 0.08);
  --shadow-large: 0 8px 8px rgba(16, 8, 13, 0.03), 0 20px 24px rgba(16, 8, 13, 0.08);
  --shadow-xlarge: 0 24px 48px rgba(16, 8, 13, 0.18);
  --shadow-xxlarge: 0 32px 64px rgba(16, 8, 13, 0.14);

  --pad: 64px;
  --section-lg: 112px;
  --section-md: 80px;
  --section-sm: 48px;
  --container: 1280px;
  --header-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-primary);
  background: var(--surface-page);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap {
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--cashew-lighter);
  border-bottom: 1px solid rgba(185, 180, 177, 0.55);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
    }
    .logo img { height: 28px; width: auto; }
    .badge { min-height: 44px; }
.header-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Official store badges ---------- */
.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 8px;
}
.badge img { width: auto; height: 44px; }
.badge--lg img { height: 56px; }
.badge--app img { height: 44px; }
.badge--app.badge--lg img { height: 56px; }
/* Cropped official Play badge: artwork is ~3.36:1, match App Store visual height. */
.badge--play img { height: 44px; }
.badge--play.badge--lg img { height: 56px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--aubergine-light);
  margin-bottom: 20px;
}
.price-line {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

/* ---------- Hero (approved website mockup composition) ---------- */
.hero {
  padding: 72px 0 48px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 48px 64px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 72px;
  line-height: 1.10;
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.hero h1 .tone {
  display: block;
  color: var(--fig);
}
.hero-copy p.lead {
  margin-top: 24px;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  max-width: 38ch;
}
.hero-cta { margin-top: 36px; }
.hero-media {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone { width: min(100%, 420px); }
.hero .phone { width: min(100%, 460px); }
.phone img {
  width: 100%;
  height: auto;
}

/* ---------- Logging / features ---------- */
.logging {
  padding: 48px 0 var(--section-md);
}
.logging .wrap {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 48px 72px;
  align-items: center;
}
.logging-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
}
.logging-intro .eyebrow { margin-bottom: 16px; }
.logging-intro h2,
.section-title,
.feature-copy h3,
.reason h3,
.trial h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.logging-intro h2 {
  font-size: 52px;
  line-height: 1.20;
  max-width: 14ch;
  margin: 0 0 20px;
}
.logging-lead,
.feature-copy p {
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  max-width: 38ch;
}
.log-methods {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.log-method {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 16px;
  row-gap: 2px;
  align-items: center;
}
.log-method .icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 0;
  grid-row: span 2;
}
.log-method .icon-tile svg { width: 24px; height: 24px; }
.log-method h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.30;
  letter-spacing: -0.01em;
  padding-top: 1px;
}
.log-method p {
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 34ch;
}
.logging-media,
.feature-media {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone { width: min(100%, 420px); }
.hero .phone { width: min(100%, 460px); }

.features {
  padding: 24px 0 var(--section-lg);
}
.section-title {
  font-size: 52px;
  line-height: 1.20;
  text-align: center;
  max-width: 22ch;
  margin: 0 auto 72px;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 72px;
  align-items: center;
  padding: 40px 0;
}
.feature--flip .feature-media { order: 2; }
.feature-copy h3 {
  font-size: 44px;
  line-height: 1.20;
  max-width: 16ch;
}
.feature-kicker {
  margin-top: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fig);
  max-width: 22ch;
}
.feature-copy p { margin-top: 16px; }
.feature-copy .feature-kicker + p { margin-top: 12px; }

/* ---------- Trial (Scheme 3 Deep) ---------- */
.trial {
  position: relative;
  background: var(--aubergine);
  color: var(--text-on-dark);
  padding: 112px 0;
  text-align: center;
  overflow: hidden;
}
.trial h2 {
  position: relative;
  font-size: 56px;
  line-height: 1.20;
  max-width: 18ch;
  margin: 0 auto 16px;
  color: var(--cashew-lightest);
}
.trial .price-line {
  position: relative;
  color: var(--fig-lighter);
  font-size: 22px;
  margin: 0 auto 36px;
}
.trial .cta-row {
  position: relative;
  justify-content: center;
}

/* ---------- Why ---------- */
.why { padding: var(--section-lg) 0; }
.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
  max-width: 800px;
  margin: 0 auto;
}
.reason {
  text-align: center;
  padding: 8px 12px;
}
.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--lemon-curd);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.icon-tile svg {
  width: 24px;
  height: 24px;
  stroke: var(--aubergine);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reason h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.reason p {
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 32ch;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--aubergine-dark);
  color: var(--cashew-lightest);
  padding: 64px 0 40px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--fig);
}
.footer .logo img { height: 28px; }
.tagline {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--fig-lighter);
  max-width: 28ch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 16px;
  font-weight: 400;
}
.footer-nav a {
      color: var(--cashew-lightest);
      opacity: 0.88;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      min-width: 44px;
    }
.footer-nav a:hover { opacity: 1; }
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.footer-bottom {
  padding-top: 24px;
  font-size: 12px;
  color: var(--fig-lighter);
}

/* ---------- Swap / annotation layer ---------- */
.swap { position: relative; }
.swap-label {
  display: none;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  background: var(--lemon-curd);
  color: var(--aubergine);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: var(--shadow-small);
  pointer-events: none;
  white-space: nowrap;
}
.swap--badge .swap-label { top: -10px; left: 50%; transform: translate(-50%, -100%); }
/* Keep header/footer labels inside the bar so they are not clipped. */
.header .swap--badge .swap-label,
.footer .swap--badge .swap-label {
  top: auto;
  bottom: 2px;
  left: 50%;
  transform: translate(-50%, 0);
  font-size: 8px;
  padding: 4px 6px;
}
body.annotate .swap-label { display: inline-block; }
body.annotate .header { overflow: visible; }
body.annotate .swap--device {
  outline: 1.5px dashed var(--aubergine);
  outline-offset: -12px;
  border-radius: 28px;
}
body.annotate .swap--badge {
  outline: 1.5px dashed var(--lemon-curd-darker);
  outline-offset: 4px;
}

/* ---------- Mobile artboard (390 wide, iPhone and Android) ---------- */
.page-mobile {
  --pad: 20px;
  --section-lg: 64px;
  --section-md: 48px;
  --section-sm: 32px;
  --header-h: 72px;
}
.page-mobile .logo img,
.page-mobile .footer .logo img { height: 24px; }

.page-mobile .hero { padding: 32px 0 16px; }
.page-mobile .hero .wrap,
.page-mobile .logging .wrap,
.page-mobile .feature {
  grid-template-columns: 1fr;
  gap: 28px;
}
.page-mobile .feature--flip .feature-media { order: 0; }
.page-mobile .hero h1 {
  font-size: 40px;
  line-height: 1.12;
  max-width: 12ch;
}
.page-mobile .hero-copy p.lead,
.page-mobile .logging-lead,
.page-mobile .feature-copy p { font-size: 18px; }
.page-mobile .hero-cta { margin-top: 28px; }
.page-mobile .price-line { font-size: 16px; }
.page-mobile .hero-media { justify-content: center; }
.page-mobile .hero .phone,
.page-mobile .phone { width: min(100%, 340px); }

.page-mobile .logging { padding: 32px 0 48px; }
.page-mobile .logging-copy { display: contents; }
.page-mobile .logging-intro { order: 1; }
.page-mobile .logging-media { order: 2; }
.page-mobile .log-methods { order: 3; margin-top: 8px; }
.page-mobile .logging-intro h2,
.page-mobile .section-title { font-size: 32px; }
.page-mobile .section-title { margin-bottom: 32px; }
.page-mobile .feature { padding: 28px 0; }
.page-mobile .feature-copy h3 { font-size: 32px; }
.page-mobile .feature-kicker { font-size: 18px; }
.page-mobile .phone { width: min(100%, 340px); }

.page-mobile .trial { padding: 80px 24px; }
.page-mobile .trial h2 { font-size: 36px; }
.page-mobile .trial .price-line { font-size: 18px; }

.page-mobile .reasons {
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 400px;
}
.page-mobile .footer { padding: 48px 0 32px; }
.page-mobile .footer-top { flex-direction: column; }

/* Desktop-only refinements already in the defaults.
   A safety wrap for mid-width previews of the desktop file: */
@media (max-width: 980px) {
  .page-desktop { --pad: 28px; --section-lg: 80px; }
  .page-desktop .hero { padding: 40px 0 24px; }
  .page-desktop .hero .wrap,
  .page-desktop .feature,
  .page-desktop .logging .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .page-desktop .feature--flip .feature-media { order: 0; }
  .page-desktop .hero h1 { font-size: 52px; max-width: 12ch; }
  .page-desktop .hero .phone { width: min(100%, 400px); }
  .page-desktop .logging-copy { display: contents; }
  .page-desktop .logging-intro { order: 1; }
  .page-desktop .logging-media { order: 2; }
  .page-desktop .log-methods { order: 3; }
  .page-desktop .reasons { grid-template-columns: 1fr; max-width: 400px; }
  .page-desktop .footer-top { flex-direction: column; }
}

/* Breakpoints for the desktop file opened on smaller screens.
   Mobile artboards (iphone/, android/) always use .page-mobile (390 layout). */
@media (max-width: 1024px) {
  .page-desktop { --pad: 32px; --section-lg: 80px; }
  .page-desktop .hero h1 { font-size: 56px; }
}
@media (max-width: 600px) {
  .page-desktop { --pad: 20px; --section-lg: 64px; --header-h: 72px; }
  .page-desktop .hero { padding: 32px 0 16px; }
  .page-desktop .hero h1 { font-size: 40px; max-width: 12ch; }
  .page-desktop .hero-copy p.lead,
  .page-desktop .logging-lead,
  .page-desktop .feature-copy p { font-size: 18px; }
  .page-desktop .logo img, .page-desktop .footer .logo img { height: 24px; }
}

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

.android-waitlist-label{display:block;color:inherit;padding:4px 16px;font-size:12px;line-height:1.15;text-align:left}.android-waitlist-label strong{font-size:16px}

/* Keep both store actions usable without clipping a wrapped phone header. */
@media (max-width: 600px) {
  .header { height: auto; min-height: var(--header-h); padding-block: 12px; }
  .header .wrap { flex-wrap: wrap; gap: 10px 12px; }
  .header-badges { margin-left: auto; }
  .header-badges .cta-row { flex-wrap: nowrap; gap: 10px; }
  .header-badges .android-waitlist-label { padding-inline: 8px; }
  .header-badges .android-waitlist-label strong { font-size: 14px; }
}

/* ---------- 12 Nov fit pass (Nick): Google Play badge, hero fits the first screen ---------- */
/* The official Play artwork carries its own clear space (~90% of the image height), so it is set taller to match the App Store badge. */
.badge--play { flex-direction: column; }
.badge--play img { height: 49px; }
.badge--play.badge--lg img { height: 62px; }
.badge-soon {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px;
  font-size: 11px; line-height: 1.2; letter-spacing: 0.10em; text-transform: uppercase;
  text-align: center; color: var(--aubergine-light);
}
.header .badge-soon { display: none; }
.footer .badge-soon { color: var(--text-on-dark-secondary); }
.cta-row:has(.badge-soon) { padding-bottom: 18px; }
.header .cta-row { padding-bottom: 0; }

/* One token sizes the hero phone from the viewport height (device art is 800x1520, ratio 0.526). */
:root { --hero-phone-w: clamp(220px, calc((100svh - var(--header-h) - 72px) * 0.526), 400px); }
.hero { padding: 32px 0 36px; }
.hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(220px, var(--hero-phone-w)); }
.hero .phone { width: min(100%, var(--hero-phone-w)); }
.hero h1 { font-size: clamp(48px, 5.2vw, 72px); }
.hero .eyebrow { margin-bottom: 16px; }
.hero-copy p.lead { margin-top: 20px; }
.hero-cta { margin-top: 28px; }

@media (max-width: 760px) {
  :root { --pad: 20px; --header-h: 64px; --hero-phone-w: 260px; }
  .header .logo img { height: 24px; }
  .header .badge img { height: 34px; }
  .header .badge--play img { height: 38px; }
  .header-badges .cta-row { gap: 8px; flex-wrap: nowrap; }
  .hero { padding: 24px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 40px; line-height: 1.12; }
  .hero-copy p.lead { font-size: 18px; }
  .hero-cta { margin-top: 24px; }
  .hero-media { justify-content: center; }
}
/* Copy sits under the header instead of floating mid-hero; the phone keeps its own height. */
.hero .wrap { align-items: start; }
.hero-copy { padding-top: clamp(16px, 6svh, 64px); }
@media (max-width: 760px) { .hero-copy { padding-top: 0; } }

/* 12 Nov (Nick): phones alternate down the page, hero on the right: hero R, logging L, features R/L/R/L/R. */
@media (min-width: 981px) {
  .logging .wrap { grid-template-columns: minmax(260px, 420px) 1fr; }
  .logging-media { order: -1; }
}
/* 12 Nov (Nick): hero text a little lower under the header. */
.hero-copy { padding-top: clamp(32px, 11svh, 112px); }
@media (max-width: 760px) { .hero-copy { padding-top: 8px; } }
