@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,500;0,600;0,700;0,800;1,500&display=swap');

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

body {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f2ec;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: #fff;
  border-radius: 22px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 20px rgba(20, 32, 30, 0.15);
}

.page-home .card {
  padding: 48px 36px;
  max-width: 440px;
}

.page-invite .card {
  padding: 40px 32px;
  max-width: 400px;
}

.logo {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.page-home .logo {
  margin-bottom: 24px;
}

.page-home h1 {
  font-size: 28px;
  font-weight: 800;
  color: #14201e;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-invite h1 {
  font-size: 22px;
  font-weight: 700;
  color: #14201e;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 16px;
  font-weight: 500;
  color: #5b6b67;
  line-height: 1.6;
  margin-bottom: 36px;
}

.features {
  margin: 0 0 36px;
  padding-left: 1.25em;
  text-align: left;
  list-style: disc;
}

.features li {
  font-size: 15px;
  font-weight: 500;
  color: #14201e;
  line-height: 1.5;
  padding-left: 0.35em;
}

.features li + li {
  margin-top: 12px;
}

/* Custom-built store buttons: identical width/height/radius so Apple and Google
   always match exactly, regardless of each brand's own badge-art aspect ratio.
   Icons (Apple glyph, Google Play triangle) are kept inline inside each button. */
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}

.page-invite .store-row {
  gap: 10px;
}

.store-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 160px;
  height: 48px;
  padding: 0 14px;
  box-sizing: border-box;
  background: #000;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}

.store-btn:active {
  opacity: 0.85;
}

.store-btn:focus-visible {
  outline: 3px solid #0f5551;
  outline-offset: 2px;
}

.store-btn__icon {
  flex-shrink: 0;
  width: 20px;
  height: 24px;
  color: #fff;
}

.store-btn__icon--google {
  width: 19px;
  height: 21px;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  overflow: hidden;
  text-align: left;
}

.store-btn__eyebrow {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.store-btn__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.store-btn--prominent {
  box-shadow: 0 0 0 3px #0f5551;
  transform: scale(1.03);
}

.btn {
  display: block;
  text-decoration: none;
  transition: opacity 0.15s;
  text-align: center;
  font-family: inherit;
}

.btn:active {
  opacity: 0.85;
}

.page-invite p {
  font-size: 15px;
  font-weight: 500;
  color: #5b6b67;
  line-height: 1.5;
  margin-bottom: 28px;
}

.page-invite .btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  margin-bottom: 12px;
}

.page-invite .btn-primary {
  background: #0f5551;
  color: #fff;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #8a9793;
  font-size: 13px;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e4dfd5;
}

.opening {
  display: none;
}

.page-invite .opening p {
  color: #0f5551;
  font-weight: 600;
  margin-bottom: 8px;
}

#status {
  font-size: 13px;
  font-weight: 500;
  color: #8a9793;
  margin-top: 16px;
  margin-bottom: 0;
}

.site-footer {
  margin-top: 28px;
  font-size: 12px;
  font-weight: 500;
  color: #8a9793;
}

.site-footer p {
  margin: 8px 0 0;
}

.site-footer .copyright {
  margin-top: 10px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  font-size: 13px;
  font-weight: 600;
}

.legal-links a {
  color: #0f5551;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-links a:focus-visible {
  outline: 3px solid #0f5551;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------
   Document pages (/account-deletion, /privacy, /terms)

   Long-form, left-aligned content on the same "Fresh Market" tokens as
   the app (see design/pricetrackerz-cursor-handoff/00-design-tokens.md):
   paper #f4f2ec, surface #fff / #faf8f3, ink #14201e / #5b6b67 / #8a9793,
   line #e4dfd5, brand #0f5551 / #e2eeeb, warn #a9631a / #fbeedd.
   Body copy is ink for readability; headings carry the brand teal.
   Scoped to .page-doc so the centred home + invite cards are untouched.
   ------------------------------------------------------------------ */

.page-doc {
  align-items: flex-start;
}

.page-doc .card {
  max-width: 640px;
  padding: 40px 32px;
  text-align: left;
}

.page-doc .card.card-wide {
  max-width: 760px;
}

.page-doc .doc-header {
  text-align: center;
  margin-bottom: 28px;
}

.page-doc .logo {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.page-doc h1 {
  font-size: 26px;
  font-weight: 800;
  color: #0f5551;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page-doc .lead {
  font-size: 16px;
  font-weight: 500;
  color: #14201e;
  line-height: 1.6;
}

.page-doc .meta {
  font-size: 13px;
  font-weight: 500;
  color: #5b6b67;
  margin-top: 6px;
}

.page-doc h2 {
  font-size: 19px;
  font-weight: 800;
  color: #0f5551;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
}

.page-doc .rule {
  padding-top: 24px;
  border-top: 1px solid #e4dfd5;
}

.page-doc h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f5551;
  margin: 20px 0 8px;
}

.page-doc p,
.page-doc li,
.page-doc td {
  font-size: 15px;
  font-weight: 500;
  color: #14201e;
  line-height: 1.6;
}

.page-doc p {
  margin-bottom: 12px;
}

/* The global reset strips list indentation; plain lists in long-form copy need it back. */
.page-doc ul:not(.steps),
.page-doc ol:not(.steps) {
  padding-left: 22px;
  margin: 0 0 12px;
}

.page-doc ul:not(.steps) li,
.page-doc ol:not(.steps) li {
  margin-bottom: 6px;
}

.page-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
}

.page-doc th,
.page-doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e4dfd5;
  vertical-align: top;
}

.page-doc th {
  background: #faf8f3;
  font-size: 13px;
  font-weight: 800;
  color: #0f5551;
}

/* Informational note: brand-soft fill, brand rule, ink text. */
.page-doc .note {
  background: #e2eeeb;
  border-left: 4px solid #0f5551;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}

.page-doc .note p {
  margin: 0;
}

.page-doc .doc-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 13px;
}

.page-doc strong {
  color: #14201e;
  font-weight: 700;
}

.page-doc code {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #0f5551;
  background: #e2eeeb;
  border-radius: 6px;
  padding: 2px 6px;
}

.page-doc a {
  color: #0f5551;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-doc a:focus-visible,
.page-doc .btn:focus-visible {
  outline: 3px solid #0f5551;
  outline-offset: 2px;
  border-radius: 8px;
}

/* An option block: surface-2 fill, 1px line, radius 16 — same recipe as app cards. */
.page-doc .panel {
  background: #faf8f3;
  border: 1px solid #e4dfd5;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
}

.page-doc .panel > h2 {
  margin-top: 0;
}

.page-doc .panel > :last-child {
  margin-bottom: 0;
}

/* Mono micro-label, as used for section headers in the app. */
.page-doc .eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #8a9793;
  margin-bottom: 8px;
}

.page-doc .steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 14px;
}

.page-doc .steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
  min-height: 28px;
}

.page-doc .steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  border-radius: 99px;
  background: #e2eeeb;
  color: #0f5551;
  font-size: 13px;
  font-weight: 800;
  line-height: 28px;
  text-align: center;
}

.page-doc .btn-primary {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #0f5551;
  text-decoration: none;
  text-align: center;
  margin: 16px 0 0;
}

/* Caution callout. Body text stays ink (not warn) to hold >= 4.5:1 contrast on the fill. */
.page-doc .callout {
  background: #fbeedd;
  border-left: 4px solid #a9631a;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}

.page-doc .callout p {
  color: #14201e;
  margin: 0;
}

.page-doc .callout .callout-label {
  display: block;
  color: #a9631a;
  font-weight: 800;
  margin-bottom: 4px;
}

.page-doc .doc-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e4dfd5;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #8a9793;
}

.page-doc .doc-footer a {
  color: #5b6b67;
  font-weight: 600;
}

.page-doc .doc-footer .copyright {
  margin: 12px 0 0;
  font-size: 12px;
  color: #8a9793;
}

@media (max-width: 480px) {
  .page-doc {
    padding: 12px;
  }

  .page-doc .card {
    padding: 28px 20px;
  }

  .page-doc th,
  .page-doc td {
    padding: 8px;
  }
}
