/* GAS website — shared styles.
   Values are the app's Theme v2 (Mineral Light) design tokens, so the site and
   the app cannot drift apart. Light only: the app has no dark theme, and a
   dark palette invented here would be one more thing to keep in step. */

:root {
  --color-bg: #E5EDFF;
  --color-surface: #FFFFFF;
  --color-surface-inset: #E2E8F4;
  --color-border: #D8DFEC;
  --color-text: #14181C;
  --color-text-muted: #5F6B76;
  --color-text-disabled: #A4AEBF;
  --color-primary: #1D5FD8;
  --color-on-primary: #FFFFFF;
  --color-ink: #101828;
  --color-ink-divider: #2A3550;
  --color-caution: #9A6B12;

  --color-tint-primary: #E3EBFB;
  --color-tint-caution: #F5EBD8;
  --color-tint-meal: #F7E7DA;
  --color-tint-water: #DDEBEE;
  --color-tint-bowel: #E6E1EF;
  --color-tint-bloating: #F6E4EF;
  --color-tint-stress: #F5E2DE;
  --color-tint-sleep: #E4E2F7;
  --color-scale-1: #C3D4F2;

  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Inter is the app's typeface. It is not loaded from a font CDN on purpose:
     the privacy policy promises no third-party requests, and a webfont host
     would see every reader's IP. Readers with Inter installed get it; everyone
     else gets their platform's UI face. */
  --font-ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

/* The screenshots carry width/height attributes so the page reserves their space
   before they load; without height:auto those attributes would also fix the
   rendered height and squash the image. */
img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Shared chrome ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 120px;
  background: var(--color-surface);
}

.nav--bordered {
  border-bottom: 1px solid var(--color-border);
}

.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lockup__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.lockup__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lockup__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 22px;
}

.lockup__strapline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 12px;
  color: var(--color-text-disabled);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav__links a[aria-current="page"] {
  font-weight: 600;
  color: var(--color-text);
}

.footer {
  padding: 56px 120px 48px;
  background: var(--color-ink);
  color: var(--color-on-primary);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__top,
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer .lockup__icon {
  width: 36px;
  height: 36px;
}

.footer__tagline {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-disabled);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.footer__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-on-primary);
}

.footer__divider {
  height: 1px;
  background: var(--color-ink-divider);
}

.footer__bottom {
  font-size: 13px;
  line-height: 18px;
  color: var(--color-text-disabled);
}

/* ---------- Document pages ---------- */

.doc {
  padding: 72px 120px 104px;
}

.doc__inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
  max-width: 1040px;
  margin: 0 auto;
}

/* The contents list earns its place on a long document only; the deletion page
   has five short sections and centres its column instead. */
.contents {
  width: 240px;
  flex-shrink: 0;
  padding-top: 8px;
  position: sticky;
  top: 24px;
}

.contents__title {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

.contents__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contents__list a {
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.article {
  width: 100%;
  max-width: 720px;
}

.article > * + * {
  margin-top: 32px;
}

.article h1 {
  margin: 0;
  font-size: 48px;
  line-height: 52px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.article h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.028em;
}

.article p {
  margin: 0 0 12px;
  color: var(--color-text-muted);
}

.article section p:last-child {
  margin-bottom: 0;
}

.doc-meta {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.doc-intro {
  margin-top: 22px;
  font-size: 17px;
  line-height: 28px;
  color: var(--color-text);
}

/* ---------- Components ---------- */

.callout {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--color-tint-primary);
}

.callout__title {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--color-text);
}

.callout p {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
}

.callout--caution {
  background: var(--color-tint-caution);
}

.callout--caution .callout__title {
  color: var(--color-caution);
}

/* The caution callout's body stays full-strength ink: it is the one paragraph
   on the site that must not read as small print. */
.callout--caution p {
  color: var(--color-text);
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14px;
  line-height: 20px;
}

.table th {
  padding: 12px 20px;
  background: var(--color-surface-inset);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: left;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.table td {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-text-muted);
}

.table td:first-child {
  font-weight: 600;
  color: var(--color-text);
}

.card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-inset);
}

.card__title {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--color-text);
}

.card ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--color-text-muted);
}

.card li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 24px;
}

.card p {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

/* The number sits out of flow rather than being a flex sibling: a step's text
   contains links and bold runs, and as flex items those would each become their
   own column instead of flowing as a sentence. */
.steps li {
  position: relative;
  padding-left: 38px;
  color: var(--color-text-muted);
}

/* The number is drawn rather than written, so the markup stays an ordered list
   for anything reading the page aloud. */
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text-muted);
}

/* Filled numbers mark the route we want people to take; the fallback route
   keeps the outlined ones. */
.steps--primary {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.steps--primary li::before {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.heading-row h2 {
  margin: 0;
}

.tag {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: var(--color-tint-primary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-primary);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .nav {
    padding: 18px 20px;
  }

  .lockup__icon {
    width: 28px;
    height: 28px;
  }

  .lockup__name {
    font-size: 18px;
  }

  .nav__links {
    gap: 20px;
  }

  /* Three section links wrap onto two lines at this width. The sections are a
     scroll away on a phone; the link that leaves the page is the one to keep. */
  .nav--ground .nav__links a:not(:last-child) {
    display: none;
  }

  .doc {
    padding: 32px 20px 48px;
  }

  .doc__inner {
    gap: 0;
  }

  .contents {
    display: none;
  }

  .article {
    width: 100%;
  }

  .article > * + * {
    margin-top: 28px;
  }

  .article h1 {
    font-size: 30px;
    line-height: 34px;
    letter-spacing: -0.03em;
  }

  .article h2 {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 12px;
  }

  .article p,
  .steps li,
  .card li,
  .card p {
    font-size: 15px;
    line-height: 24px;
  }

  .doc-meta {
    font-size: 13px;
    line-height: 18px;
  }

  .doc-intro {
    font-size: 16px;
    line-height: 26px;
  }

  .callout,
  .card,
  .steps--primary {
    padding: 16px;
  }

  /* A three-column table cannot survive a phone, so each row becomes a card:
     the first cell titles it, and the rest keep their column heading as a
     label. The markup stays a real table for screen readers and wide screens. */
  .table {
    display: block;
    border: 0;
  }

  .table thead {
    display: none;
  }

  .table tbody,
  .table tr,
  .table td {
    display: block;
  }

  .table tr {
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
  }

  .table tr + tr {
    margin-top: 10px;
  }

  .table td {
    padding: 0;
    border: 0;
  }

  .table td + td {
    margin-top: 8px;
  }

  .table td:first-child {
    font-size: 15px;
    line-height: 20px;
  }

  /* Only the last column earns a label: "Account / Email address…" reads fine
     without one, but the last cell needs saying which question it answers. */
  .table td[data-label]:last-child::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }

  /* Two-column tables read as name-over-purpose already; a label above the
     purpose would just repeat the column heading. */
  .table--pairs td[data-label]:last-child::before {
    content: none;
  }

  .footer {
    padding: 36px 20px 32px;
  }

  .footer__top,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__bottom {
    gap: 6px;
    font-size: 12px;
    line-height: 17px;
  }
}

/* ---------- Landing page ---------- */

.nav--ground {
  background: var(--color-bg);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding: 72px 120px 96px;
  background: var(--color-bg);
}

/* The screenshot keeps its size and the text gives way: between the stacking
   breakpoint and a full-width desktop there is not room for both, and a phone
   shrunk to thumbnail size stops being legible long before a text column does. */
.hero__copy {
  flex: 1 1 auto;
  max-width: 560px;
}

.hero__art {
  flex-shrink: 0;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: 48px;
  line-height: 52px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero__sub {
  max-width: 500px;
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-muted);
}

.hero__availability {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.hero__privacy {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-muted);
}

.hero__art img,
.feature__panel img {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.14);
}

.hero__art img {
  width: 324px;
  border-radius: 30px;
}

.section {
  padding: 96px 120px;
}

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

.section--ground {
  background: var(--color-bg);
}

.section__head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

.section__head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section__lede {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--color-text-muted);
}

.metric-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.metric-card {
  width: 386px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* Each card carries its metric's tint behind the icon, the same pairing the
   app uses, so a colour means the same thing in both places. */
.metric-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--metric-tint);
}

.metric-card__icon img {
  width: 24px;
  height: 24px;
}

.metric-card h3 {
  margin: 14px 0 8px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric-card p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-muted);
}

.metric--meal { --metric-tint: var(--color-tint-meal); }
.metric--bloating { --metric-tint: var(--color-tint-bloating); }
.metric--bowel { --metric-tint: var(--color-tint-bowel); }
.metric--stress { --metric-tint: var(--color-tint-stress); }
.metric--sleep { --metric-tint: var(--color-tint-sleep); }
.metric--water { --metric-tint: var(--color-tint-water); }

.features {
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 96px;
}

.feature + .feature {
  margin-top: 72px;
}

.feature--reverse {
  flex-direction: row-reverse;
}

/* The screen is taller than its panel on purpose: it starts below the panel's
   top edge and runs off the bottom, so the top of the screen — the part that
   says which screen it is — is never the part that gets cropped. */
.feature__panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 460px;
  height: 560px;
  flex-shrink: 0;
  padding-top: 56px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--panel-tint);
}

.feature__panel img {
  width: 286px;
}

.panel--log { --panel-tint: var(--color-scale-1); }
.panel--trends { --panel-tint: var(--color-tint-bloating); }
.panel--insights { --panel-tint: var(--color-tint-meal); }

.feature__copy {
  flex: 1 1 auto;
  max-width: 560px;
}

.feature__copy h3 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

.privacy-card {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px;
  border-radius: var(--radius-xl);
  background: var(--color-tint-primary);
}

.privacy-card h2 {
  max-width: 880px;
  margin: 14px 0 0;
  font-size: 30px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.privacy-points {
  display: flex;
  gap: 32px;
  margin-top: 36px;
}

.privacy-point {
  flex: 1;
}

.privacy-point h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.privacy-point p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-muted);
}

.privacy-point a {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 28px 20px 40px;
  }

  .hero__copy {
    width: 100%;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: 30px;
    line-height: 34px;
    letter-spacing: -0.03em;
  }

  .hero__sub {
    max-width: none;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 24px;
  }

  .hero__availability {
    font-size: 15px;
  }

  .hero__art {
    width: 100%;
    text-align: center;
  }

  .hero__art img {
    width: 273px;
    margin: 0 auto;
    border-radius: 26px;
  }

  .section {
    padding: 48px 20px;
  }

  .section__head {
    margin-bottom: 24px;
    text-align: left;
  }

  .section__head h2 {
    font-size: 22px;
    line-height: 28px;
    letter-spacing: -0.028em;
  }

  .section__lede {
    margin-left: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .metric-grid {
    flex-direction: column;
    gap: 10px;
  }

  /* On a phone the six cards become rows: the icon keeps its own column so the
     names line up down the page. */
  .metric-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .metric-card__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
  }

  .metric-card__icon img {
    width: 22px;
    height: 22px;
  }

  .metric-card h3 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 20px;
  }

  .metric-card p {
    font-size: 13px;
    line-height: 18px;
  }

  .feature,
  .feature--reverse {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .feature + .feature {
    margin-top: 40px;
  }

  .feature__panel {
    width: 100%;
    height: 300px;
    padding-top: 32px;
    border-radius: var(--radius-lg);
  }

  .feature__panel img {
    width: 240px;
    border-radius: 22px;
  }

  .feature__copy {
    width: 100%;
  }

  .feature__copy h3 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -0.028em;
  }

  .feature__copy p {
    font-size: 14px;
    line-height: 20px;
  }

  .privacy-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .privacy-card h2 {
    font-size: 22px;
    line-height: 28px;
    letter-spacing: -0.028em;
  }

  .privacy-points {
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
  }

  .privacy-point h3 {
    font-size: 15px;
  }

  .privacy-point p {
    font-size: 13px;
    line-height: 18px;
  }
}

/* ---------- Between a phone and a full desktop ----------
   These come last on purpose: they override both the document and the landing
   rules above, and a media query carries no extra weight of its own. */

/* A laptop is not a 1440px mockup. The 120px gutters are the first thing to go
   once the content columns stop fitting inside them. */
@media (max-width: 1360px) and (min-width: 901px) {
  .nav,
  .footer,
  .section,
  .hero,
  .doc {
    padding-left: 48px;
    padding-right: 48px;
  }

  .doc__inner {
    gap: 48px;
  }
}

/* Below this a screenshot beside its text leaves the text too narrow to read,
   so the pair stacks while the type stays at desktop size. */
@media (max-width: 1100px) and (min-width: 901px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .hero__copy {
    max-width: 640px;
  }

  .hero__art {
    width: 100%;
  }

  .hero__art img {
    margin: 0 auto;
  }

  .feature,
  .feature--reverse {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .feature + .feature {
    margin-top: 56px;
  }

  .feature__panel {
    width: 100%;
  }

  .feature__copy {
    max-width: none;
  }

  .privacy-points {
    flex-wrap: wrap;
  }

  .privacy-point {
    flex: 1 1 240px;
  }
}
