/* Remember4Me site (STORE-003). GramJee style guide; no web fonts, no scripts.
   Text on the blue band is navy, not white: white on --primary is ~2.5:1
   (below the 4.5:1 readable minimum); navy is ~5.2:1.
   CSP allows our own stylesheet only: never use style="" attributes. */
:root {
  --primary: #6fa8dc;
  --primary-dark: #4f86b5;
  --navy: #17324d;
  --accent: #b88a44;
  --yellow: #ffe436; /* from the app icon */
  --text: #1c2733;
  --muted: #687585;
  --light: #f5f7fa;
  --white: #ffffff;
  --border: #e3e8ee;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header (every page) ---------- */
.site-header {
  background: var(--primary);
  color: var(--navy);
  position: relative;
  overflow: hidden;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 6%;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* App icon beside the name, rounded like a home-screen icon. */
.brand img { width: 40px; height: 40px; border-radius: 9px; }

.nav-links a { font-size: 0.9rem; font-weight: 600; margin-left: 28px; }
.nav-links a:hover, .nav-links a:focus-visible { text-decoration: underline; }

/* ---------- Homepage hero ---------- */
.site-header.home { min-height: 560px; display: flex; flex-direction: column; }

.site-header.home::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  right: -180px;
  top: -160px;
}

.site-header.home::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  right: -80px;
  bottom: -180px;
}

.hero {
  width: 88%;
  max-width: 1100px;
  margin: auto;
  padding: 24px 0 72px;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* .hero .x, not .x: `.hero p` below would otherwise set their size. */
.hero .eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* The headline stays on ONE line: its size follows the screen width (4.4vw,
   at most 3.6rem) so it always fits; phones (see Mobile) let it wrap
   instead of shrinking it to an unreadable size. */
.hero h1 {
  font-size: clamp(1.6rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  margin-bottom: 20px;
}

.hero p { max-width: 680px; margin-left: auto; margin-right: auto; font-size: 1.15rem; line-height: 1.8; }

.hero .sub { max-width: 760px; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 36px;
}

/* "Coming soon" badge: the app icon's yellow, with a slowly pulsing dot. */
.coming {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(23, 50, 77, 0.18);
}

.coming-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy);
  animation: coming-pulse 1.6s ease-in-out infinite;
}

@keyframes coming-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .coming-dot { animation: none; }
}

.see-how { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.see-how:hover { color: var(--white); }

/* ---------- Homepage sections ---------- */
section { padding: 100px 6%; }
.content { max-width: 1100px; margin: 0 auto; }
.center { text-align: center; }

.section-label {
  color: #263746;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.section-title {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 25px;
}

/* "Sound familiar?" — three everyday questions, then the answer. */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.quote {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
}

.answer {
  margin-top: 44px;
  color: var(--navy);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* What it does: three cards on the light background. */
.purpose { background: var(--light); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 45px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(20, 40, 60, 0.08);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 { color: var(--navy); font-size: 1.15rem; line-height: 1.3; margin-bottom: 8px; }
.card p { color: var(--text); line-height: 1.7; }

/* Privacy band: navy, the page's one dark moment. */
.privacy-band { background: var(--navy); color: var(--white); text-align: center; }
.privacy-band .section-label { color: var(--yellow); }
.privacy-band .section-title { color: var(--white); }

.promises {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 36px auto 0;
  max-width: 900px;
}

.promises li {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
}

.privacy-band .band-link { display: inline-block; margin-top: 32px; text-decoration: underline; text-underline-offset: 3px; }
.privacy-band .band-link:hover { color: var(--yellow); }

/* Closing call to action. */
.closing p { color: var(--muted); font-size: 1.1rem; }
.closing .coming { margin-top: 28px; }

/* ---------- Long pages (privacy, terms, support, deletion) ---------- */
.prose {
  max-width: 46rem;
  margin: 0 auto;
  padding: 56px 6% 80px;
  overflow-wrap: break-word;
}

.prose h1 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

/* Not in the style guide (it has no in-page heading sizes). */
.prose h2 { color: var(--navy); font-size: 1.5rem; line-height: 1.25; margin: 48px 0 14px; }
.prose h3 { color: var(--navy); font-size: 1.15rem; line-height: 1.3; margin: 32px 0 10px; }

.prose p, .prose ul, .prose ol, .prose .table-wrap { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 6px; }

.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent); }

.prose hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--light);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

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

.callout {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
}

/* Wide tables scroll inside their box, never the page. */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--light); color: var(--navy); font-weight: 700; }
.doc-body td p, .doc-body td ul { margin-bottom: 10px; }
.doc-body td > :last-child { margin-bottom: 0; }

/* ---------- Help pages (deletion, support) ----------
   Uses the full page width: the choices and notices up top, then an
   "On this page" list beside the text. The text column itself stays
   ~760px so a line is still easy to read. */
.page-hero {
  position: relative;
  z-index: 1;
  width: 88%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px 0 48px;
}

.page-hero .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-hero p { max-width: 680px; font-size: 1.1rem; }
.page-hero .updated { margin-top: 12px; font-size: 0.85rem; font-weight: 600; }

.doc { width: 88%; max-width: 1100px; margin: 0 auto; padding: 48px 0 72px; }

/* The three ways in: pick yours, act. */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.choice.best { border: 2px solid var(--navy); }
.choice h2 { color: var(--navy); font-size: 1.2rem; line-height: 1.3; }
.choice p { flex: 1; }

.tag {
  align-self: flex-start;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.button {
  align-self: flex-start;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
}

.button:hover, .button:focus-visible { background: #0f2236; }

.text-link { align-self: flex-start; color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--accent); }

/* The two things people regret missing: it's permanent, and billing goes on. */
.notices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }

.notice {
  background: var(--light);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 20px 24px;
}

.notice h2 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.notices.one { grid-template-columns: 1fr; }
.notice p + p { margin-top: 8px; }
.notice ul, .notice ol { padding-left: 1.2em; margin-top: 8px; }
.notice li + li { margin-top: 4px; }
.notice a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.notice a:hover { color: var(--accent); }

.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; margin-top: 56px; }

.toc { position: sticky; top: 24px; align-self: start; font-size: 0.9rem; }
.toc p { color: #263746; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }
.toc ul { list-style: none; border-left: 2px solid var(--border); }
.toc a { display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--muted); }
.toc a:hover { color: var(--navy); border-left-color: var(--navy); }

.doc-body { max-width: 760px; overflow-wrap: break-word; }

/* padding: 0 undoes the homepage's `section` padding. */
.doc-section { padding: 0; }
.doc-section + .doc-section { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 40px; }

.doc-body h2 { color: var(--navy); font-size: 1.5rem; line-height: 1.25; margin-bottom: 14px; }
.doc-body h3 { color: var(--navy); font-size: 1.1rem; line-height: 1.3; margin: 28px 0 10px; }
.doc-body p, .doc-body ul, .doc-body ol, .doc-body .table-wrap { margin-bottom: 14px; }
.doc-body ul, .doc-body ol { padding-left: 1.4em; }
.doc-body li + li { margin-top: 6px; }
.doc-body li > ul { margin: 8px 0 0; }
.doc-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.doc-body a:hover { color: var(--accent); }
.doc-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--light); padding: 0.1em 0.3em; border-radius: 4px; }

/* A short bold label on its own line, then its text. */
.label { display: block; color: var(--navy); font-weight: 700; }

/* A tap path (Settings → …) on a line of its own, easy to follow on the phone. */
.path {
  display: block;
  width: fit-content;
  margin: 6px 0;
  padding: 4px 10px;
  background: var(--light);
  border-radius: 6px;
  color: var(--navy);
  font-weight: 600;
}

.notice .path { background: var(--white); }

/* Numbered steps with round markers. */
.doc-body .steps { list-style: none; counter-reset: step; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; }
.steps li + li { margin-top: 14px; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Side-by-side "does / doesn't" panels. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.panel { border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; }
.panel h3 { margin-top: 0; }
.doc-body .panel > :last-child { margin-bottom: 0; }

/* ---------- Footer (light and stacked; easier to read than a dark band) ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 24px 6% 32px;
  font-size: 0.9rem;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.site-footer a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--accent); }
.site-footer nav { margin-bottom: 10px; }
.site-footer nav a { display: inline-block; margin: 0 16px 6px 0; }
.site-footer p + p { margin-top: 8px; }
.site-footer strong { color: var(--text); }

/* Google's data note: kept on the homepage for Google's review, out of the pitch. */
.google-note { max-width: 760px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }

/* ---------- Mobile ---------- */
@media (max-width: 750px) {
  .site-header.home { min-height: 620px; }
  .nav { padding: 22px 6%; }
  .nav-links { display: none; }
  .hero h1 { font-size: 2.2rem; white-space: normal; }
  .hero p { font-size: 1rem; }
  .hero .sub { font-size: 1.05rem; }
  .coming { font-size: 0.8rem; letter-spacing: 0.08em; }
  section { padding: 70px 6%; }
  .quotes, .cards { grid-template-columns: 1fr; }
  .quote { font-size: 1.1rem; padding: 22px; }
  .prose { padding-top: 40px; }
  .page-hero { padding-bottom: 36px; }
  .doc { padding-top: 32px; }
  .choices, .notices, .split, .doc-layout { grid-template-columns: 1fr; }
  .doc-layout { margin-top: 40px; }
  .toc { display: none; }
}
