/* alwaysmycare.app — the whole design. Rebuilt 23 September 2026 after the
 * Owner's review of the first staging build.
 *
 * THE STRUCTURE IS got2.app's PRODUCT PAGE, the design he approved: a centred
 * hero, one large picture, a ruled row, alternating features, a privacy line,
 * serif statements over a quiet sans. THE IDENTITY IS AlwaysMyCare's
 * (brand system §5–6): "Ink and clean white with a Deep Atlantic signature",
 * the app's own system face for text so the page reads like the phone, and
 * New York -- the brand's "editorial serif, used sparingly for large brand
 * statements" -- for headings. Both faces are on every Apple device; nothing
 * is loaded from elsewhere.
 *
 * Colour: tokens only, here and in theme-alwaysmycare.css (the package's brand
 * tokens, verbatim). No rule names a hex, so test/checksite.mjs measures every
 * pair the page draws, in both schemes. Aubergine is the wordmark's colour and
 * the app's memory bar; it appears on this page only there.
 */
:root {
  color-scheme: light dark;
  --paper:   #F7FAFC;   /* Clean White, the brand's canvas */
  --surface: #FFFFFF;
  --ink:     #222630;   /* brand Ink */
  --quiet:   #5B6671;   /* secondary text; measured in checksite */
  --body:    #394150;   /* long-form legal and support text */
  --rule:    #DCE2E8;
  --bezel:   #1C2129;   /* the phone's glass edge */
  --aubergine: #59445F; /* sampled from the wordmark */
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --site:  min(100% - 3rem, 1200px);
  --shadow: 0 26px 70px rgba(23, 40, 60, .16), 0 5px 16px rgba(23, 40, 60, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #0F1822;   /* an Atlantic Dark ground (brand §5, dark appearance) */
    --surface: #16212C;
    --ink:     #F7FAFC;
    --quiet:   #A5B1BD;
    --body:    #C9D2DB;
    --rule:    #283543;
    --bezel:   #2B3440;
    --aubergine: #A48BAB;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  }
}
/* Text in the accent: Deep Atlantic in light. In dark the package's --accent is
   a pale fill for buttons, so text takes the Atlantic Outline tone instead. */
.theme-alwaysmycare { --accent-text: var(--accent); }
@media (prefers-color-scheme: dark) { .theme-alwaysmycare { --accent-text: var(--accent-ring); } }
@media (max-width: 800px) { :root { --site: min(100% - 2.5rem, 640px); } }

/* ----------------------------------------------------------------- base */
*, *::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 {
  min-width: 320px; margin: 0;
  background: var(--paper); color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
h1, h2, h3, .tagline { text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
.site-width { width: var(--site); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 4px; border-radius: 3px; }
main:focus { outline: none; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10; padding: .6rem 1rem; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: .5rem; font-size: .875rem; text-decoration: none; }
.skip-link:focus { left: 1rem; top: .75rem; }

.eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; color: var(--quiet); }
.accent { color: var(--accent-text); }
a[href^="mailto:"] { white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.site-header { border-bottom: 1px solid var(--rule); }
.nav { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-mark img { width: 132px; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { position: relative; color: var(--quiet); font-size: .84rem; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-links [aria-current] { color: var(--ink); }
.nav-links [aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.45rem; height: 2px; background: var(--accent-text); }
@media (max-width: 480px) { .nav-mark img { width: 112px; } .nav-links { gap: 1.1rem; } }

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(4.5rem, 10vw, 7rem) 0 clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.hero-mark { margin: 1.6rem auto 0; }
.hero-mark img { width: min(460px, 78vw); margin-inline: auto; }
.tagline { margin-top: 1.8rem; font: 400 clamp(1.6rem, 3vw, 2.35rem)/1.12 var(--serif); letter-spacing: -.02em; color: var(--accent-text); }
.hero-copy { max-width: 33rem; margin: 1.4rem auto 0; color: var(--quiet); font-size: 1.06rem; line-height: 1.6; }
.hero-meta { margin-top: 1.6rem; color: var(--quiet); font-size: .8rem; }
.actions { display: flex; justify-content: center; margin-top: 1.8rem; }
.button { display: inline-flex; min-height: 46px; align-items: center; padding: .75rem 1.2rem; border-radius: .5rem; background: var(--accent); color: var(--on-accent); font-size: .88rem; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--accent-hover); }

/* Three phones: My Health, Today, the whole story. Today stands in front; the
   other two lean back behind it, so the first picture is the record as a whole
   rather than one screen. The cluster is cut off by the band below it, so it
   reads as one composition rising out of the page, not a screen and a half of
   phone (got2-site thread's critique, 23 Sept: the uncut cluster was 793px
   tall and most of it empty paper). */
.hero-phones {
  display: flex; justify-content: center; align-items: flex-start;
  width: min(100% - 2rem, 1000px); margin: 0 auto;
  height: clamp(360px, 40vw, 500px); overflow: hidden;
  padding-top: .5rem;
}
.phone {
  flex: none; position: relative;
  padding: 2.2%; border-radius: 15% / 7%;
  background: var(--bezel);
  box-shadow: var(--shadow);
}
.phone picture, .phone img { display: block; border-radius: 13.4% / 6.2%; }
/* A capture cropped short: the phone's top corners at the full screen's curve,
   the bottom cut straight and fading into the page, like the hero's phones
   running into the band below them. */
.phone--cut { border-radius: 15% 15% 0 0 / var(--ry-outer) var(--ry-outer) 0 0; padding-bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to bottom, #000 88%, transparent); }
.phone--cut picture, .phone--cut img { border-radius: 13.4% 13.4% 0 0 / var(--ry-inner) var(--ry-inner) 0 0; }
.phone img { width: 100%; background: var(--surface); }
.phone--centre { z-index: 2; width: clamp(230px, 30vw, 330px); }
.phone--side { z-index: 1; width: clamp(180px, 22vw, 250px); margin-top: 3.5rem; }
.phone--left  { margin-right: -3.5rem; transform: rotate(-5deg); }
.phone--right { margin-left: -3.5rem;  transform: rotate(5deg); }
@media (max-width: 640px) {
  .phone--side { display: none; }
  .phone--centre { width: min(270px, 72vw); }
}

/* -------------------------------------------------- memory (the signature) */
.memory { background: var(--band); border-block: 1px solid var(--band-line); padding: clamp(5rem, 10vw, 8rem) 0; }
.memory-inner { max-width: 50rem; text-align: center; }
.memory-heading { font: 400 clamp(2.3rem, 5vw, 4rem)/1 var(--serif); letter-spacing: -.028em; }
.memory-list { list-style: none; margin-top: 2.6rem; padding: 0; }
.memory-list li {
  padding: .9rem 0; border-top: 1px solid var(--band-line);
  font: 400 clamp(1.25rem, 2.2vw, 1.65rem)/1.3 var(--serif); letter-spacing: -.015em; color: var(--quiet);
}
.memory-list li:last-child { border-bottom: 1px solid var(--band-line); }
/* One line of the record, drawn as Today draws it: the aubergine bar, the
   sentence, and who recorded it. The only aubergine on the page. */
.record-line {
  display: inline-block; max-width: 34rem; margin-top: 2.8rem;
  padding: 1.1rem 1.4rem 1.1rem 1.5rem; text-align: left;
  background: var(--surface); border-radius: .25rem .75rem .75rem .25rem;
  border-left: 4px solid var(--aubergine);
  box-shadow: 0 14px 30px -18px rgba(23, 38, 48, .35);
}
.record-line p { font-size: 1.05rem; line-height: 1.45; }
.record-line figcaption { margin-top: .35rem; color: var(--quiet); font-size: .8rem; }
.memory-note { max-width: 32rem; margin: 2.2rem auto 0; color: var(--quiet); font-size: 1rem; line-height: 1.6; }

/* ------------------------------------------------------ four places row */
.places { padding: clamp(5rem, 10vw, 7.5rem) 0 clamp(2rem, 4vw, 3rem); }
.section-heading { text-align: center; font: 400 clamp(2rem, 4vw, 3.2rem)/1.05 var(--serif); letter-spacing: -.025em; }
.places-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 3rem; }
.place { padding-top: 1.3rem; border-top: 1px solid var(--ink); }
.place h3 { font: 400 1.45rem/1.2 var(--serif); letter-spacing: -.02em; }
.place p { margin-top: .6rem; color: var(--quiet); font-size: .92rem; line-height: 1.55; }
@media (max-width: 900px) { .places-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
@media (max-width: 520px) { .places-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- features */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2.5rem, 7vw, 6.5rem); align-items: center;
  width: min(100% - 3rem, 960px);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.feature.reverse { grid-template-columns: auto minmax(0, 1fr); }
.feature + .feature { border-top: 1px solid var(--rule); }
.feature.reverse .feature-copy { order: 2; }
.feature.reverse .feature-visual { order: 1; }
.feature h2 { margin-top: 1rem; font: 400 clamp(2.3rem, 4.4vw, 4rem)/.98 var(--serif); letter-spacing: -.028em; }
.feature-copy p:not(.eyebrow) { max-width: 27rem; margin-top: 1.3rem; color: var(--quiet); font-size: 1.02rem; line-height: 1.65; }
.feature-visual { width: min(280px, 70vw); justify-self: center; }
@media (max-width: 800px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 3rem; width: var(--site); }
  /* Stacked, a portrait phone under left-aligned copy looks adrift (the
     critique again): centre the pair so it reads as one column. */
  .feature-copy { text-align: center; }
  .feature-copy p:not(.eyebrow) { margin-inline: auto; }
  .feature-visual { width: min(300px, 72vw); }
  .feature.reverse .feature-copy, .feature.reverse .feature-visual { order: initial; }
}

/* ---------------------------------------------------------- privacy line */
.privacy-line { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(5rem, 9vw, 7rem); }
.privacy-line-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: 2.4rem 0; border-block: 1px solid var(--rule); }
.privacy-line h2 { font: 400 clamp(1.7rem, 3vw, 2.4rem)/1.1 var(--serif); letter-spacing: -.022em; }
.privacy-line p { max-width: 44rem; margin-top: .8rem; color: var(--quiet); font-size: .95rem; line-height: 1.6; }
.outline-link { flex: none; display: inline-flex; min-height: 44px; align-items: center; padding: .6rem 1rem; border: 1px solid var(--accent-ring); border-radius: .5rem; color: var(--ink); font-size: .85rem; text-decoration: none; }
.outline-link:hover { border-color: var(--ink); }
@media (max-width: 800px) { .privacy-line-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; } }

/* ------------------------------------------- support, privacy, terms, 404 */
.page-hero { padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.page-hero h1 { margin-top: 1.1rem; font: 400 clamp(2.6rem, 6vw, 4.6rem)/1 var(--serif); letter-spacing: -.028em; }
.page-lead { max-width: 34rem; margin: 1.4rem auto 0; color: var(--quiet); font-size: 1.05rem; line-height: 1.6; }
.page-lead a { color: var(--accent-text); }
.layout { display: grid; grid-template-columns: 190px minmax(0, 720px); justify-content: center; gap: clamp(2.5rem, 7vw, 6rem); padding-bottom: 6rem; }
.toc { position: sticky; top: 2rem; align-self: start; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.toc .eyebrow { display: block; margin-bottom: .5rem; }
.toc a { display: block; margin: .55rem 0; color: var(--quiet); font-size: .8rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--ink); }
.legal, .support { border-top: 1px solid var(--rule); padding-top: 2rem; color: var(--body); font-size: .98rem; line-height: 1.75; }
.legal > p:first-child { color: var(--ink); font: 400 1.3rem/1.45 var(--serif); letter-spacing: -.01em; }
.legal > p:first-child strong { font-weight: 600; }
.legal h2, .support h2 { margin: 3rem 0 .9rem; scroll-margin-top: 1.5rem; color: var(--ink); font: 400 1.9rem/1.1 var(--serif); letter-spacing: -.022em; }
.support > section:first-child h2, .legal > h2:first-child { margin-top: 0; }
.legal p + p, .legal ul + p, .legal p + ul, .legal p + table { margin-top: 1rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: .3rem 0; }
.legal code { font: inherit; }
.legal a, .support a { color: var(--accent-text); }
.legal table { display: block; overflow-x: auto; width: 100%; margin-top: 1.2rem; border-collapse: collapse; font-size: .88rem; line-height: 1.5; }
.legal th, .legal td { padding: .65rem .75rem .65rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.legal th { color: var(--ink); font-weight: 600; }
.contact { padding: 2rem 2.2rem; border: 1px solid var(--band-line); border-radius: 1rem; background: var(--band); }
.contact h2 { margin: 0 0 .6rem; }
.contact a { font-size: 1.2rem; }
.contact p + p { margin-top: .5rem; color: var(--quiet); }
.faq .item { margin-top: 1.8rem; }
.faq h3 { color: var(--ink); font: 400 1.35rem/1.2 var(--serif); letter-spacing: -.02em; }
.faq h3 + p { margin-top: .5rem; }
@media (max-width: 800px) {
  .layout { display: block; padding-bottom: 4rem; }
  .toc { position: static; margin-bottom: 2rem; }
  .toc a { display: inline-block; margin: 0 1.1rem .5rem 0; }
  .contact { padding: 1.5rem 1.4rem; }
}

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--rule); }
.footer { display: flex; justify-content: space-between; gap: 3rem; padding: 2.8rem 0 3.2rem; }
.footer-name { font: 400 1.2rem/1.2 var(--serif); letter-spacing: -.02em; }
.footer-note { max-width: 24rem; margin-top: .6rem; color: var(--quiet); font-size: .8rem; line-height: 1.55; }
.footer-groups { display: flex; gap: 3rem; }
.footer-group { display: grid; align-content: start; gap: .55rem; }
.footer-label { color: var(--quiet); font-size: .65rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.footer-group a { color: var(--quiet); font-size: .82rem; text-decoration: none; }
.footer-group a:hover { color: var(--ink); }
@media (max-width: 800px) { .footer { flex-direction: column; } .footer-groups { flex-wrap: wrap; gap: 1.75rem 2.5rem; } }
