/* Card Mom - cardmom.app
   Palette lifted directly from the app's icon art (Icon 4 SVG):
   yellow #FFC107, orange #FF9800, leaf #8BC34A, green #4CAF50, ink #2B2222 */

:root {
  --paper: #FFF9EF;
  --surface: #FFFFFF;
  --ink: #2B2222;
  --muted: #6E6157;
  --line: rgba(43, 34, 34, 0.16);
  --yellow: #FFC107;
  --orange: #FF9800;
  --leaf: #8BC34A;
  --green: #4CAF50;
  --green-deep: #37823B;
  --amber: #FFA000;
  --red: #E5453C;
  --chip-ink: #2B2222;
  --link-hover: #A85A00;
  --shadow: 0 6px 0 rgba(43, 34, 34, 0.12);
  --display: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191410;
    --surface: #241D17;
    --ink: #F4EBDD;
    --muted: #B5A796;
    --line: rgba(244, 235, 221, 0.18);
    --green-deep: #7CC047;
    --link-hover: #FF9800;
    --shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--green-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-head { padding: 20px 0; }
.site-head .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.site-nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { font-weight: 600; font-size: 0.95rem; }

/* ---------- hero ---------- */

.hero { padding: 40px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.hero h1 .underline {
  background-image: linear-gradient(90deg, var(--green), var(--yellow), var(--orange), var(--red));
  background-repeat: no-repeat;
  background-size: 100% 0.18em;
  background-position: 0 92%;
  padding-bottom: 0.08em;
}
.hero p.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; max-width: 34em; }

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 8px 18px; min-height: 56px; background: var(--surface);
  box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
}
.badge .small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.badge .big { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.badge.soon { opacity: 0.85; }

/* the measured card: hero signature */
.measured-card { position: relative; width: min(300px, 80%); margin: 0 auto; }
.measured-card .card-face {
  border: 4px solid var(--ink); border-radius: 22px;
  background: var(--yellow);
  aspect-ratio: 63 / 88;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 0 rgba(43, 34, 34, 0.18);
}
.measured-card .card-face img { width: 68%; height: auto; }
.measure-x {
  position: absolute; left: 0; right: 0; bottom: -46px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.measure-x .bracket {
  width: 100%; height: 14px;
  border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  border-radius: 0 0 6px 6px;
  transform-origin: left center;
  animation: draw-bracket 0.9s ease-out both;
}
.measure-x .readout { font-family: var(--mono); font-size: 0.95rem; font-weight: 600; }
@keyframes draw-bracket { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.grade-chip {
  position: absolute; top: -16px; right: -14px;
  background: var(--green); color: #fff;
  border: 3px solid var(--ink); border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 1rem;
  padding: 4px 14px; box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .measure-x .bracket { animation: none; }
}

/* ---------- rulers between sections ---------- */

.ruler {
  height: 14px; margin: 48px 0 0; border: 0;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 14px),
                    repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 70px);
  background-size: auto 7px, auto 14px;
  background-position: bottom left, bottom left;
  background-repeat: repeat-x;
}

/* ---------- sections ---------- */

section { padding: 48px 0 8px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  margin: 0 0 10px;
}
.eyebrow::before { content: ""; width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--ink); background: var(--dot, var(--yellow)); }
section h1, section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.15; margin: 0 0 14px; }
section p { max-width: 62ch; }
.section-note { color: var(--muted); font-size: 0.92rem; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
.feature {
  border: 2.5px solid var(--ink); border-radius: 18px;
  background: var(--surface); padding: 22px 22px 16px; box-shadow: var(--shadow);
}
.feature h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.feature h3 .dot { width: 14px; height: 14px; border-radius: 4px; border: 2.5px solid var(--ink); flex: none; }
.feature p { margin: 0 0 8px; font-size: 0.98rem; color: var(--muted); }
.feature .mm { font-family: var(--mono); font-size: 0.85rem; color: var(--ink); }

/* ---------- screenshots ---------- */

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.shot { margin: 0; }
.shot .frame {
  border: 3px solid var(--ink); border-radius: 26px;
  background: var(--surface);
  aspect-ratio: 9 / 19.5;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.shot .frame::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 10px; border-radius: 999px; background: var(--line);
}
.shot .frame img { width: 46%; opacity: 0.45; }
.shot figcaption { text-align: center; font-size: 0.9rem; font-weight: 600; margin-top: 10px; }
.shot .soon-tag { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); font-weight: 400; }

/* ---------- pricing ---------- */

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; align-items: stretch; }
.tier { border: 3px solid var(--ink); border-radius: 20px; background: var(--surface); padding: 26px; box-shadow: var(--shadow); }
.tier.premium { background: linear-gradient(160deg, var(--surface) 60%, rgba(255, 193, 7, 0.18)); }
.tier h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin: 0; }
.tier .price { font-family: var(--display); font-weight: 800; font-size: 2rem; margin: 4px 0 2px; }
.tier .price small { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 16px 0 0; }
.tier li { padding: 7px 0 7px 30px; position: relative; font-size: 0.98rem; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2.5px solid var(--ink); background: var(--green);
}
.tier.premium li::before { background: var(--yellow); }
.tier .no-sub { margin-top: 18px; font-family: var(--mono); font-size: 0.85rem; color: var(--ink); }

/* ---------- privacy strip ---------- */

.privacy-strip {
  border: 3px solid var(--ink); border-radius: 20px;
  background: #2E5D31; color: #fff;
  padding: 30px; margin-top: 28px; box-shadow: var(--shadow);
}
.privacy-strip h2 { color: #fff; }
.privacy-strip p { color: rgba(255, 255, 255, 0.94); }
.privacy-strip a { color: #fff; }
.privacy-strip a:hover { color: var(--yellow); }
.privacy-strip ul { columns: 2; gap: 30px; padding-left: 20px; margin: 12px 0 0; }
.privacy-strip li { padding: 3px 0; }

@media (prefers-color-scheme: dark) {
  .privacy-strip { background: #2E5D31; }
}

/* ---------- footer ---------- */

.site-foot { padding: 44px 0 60px; color: var(--muted); font-size: 0.9rem; }
.site-foot .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.site-foot .links a { font-weight: 600; }
.site-foot .legal { max-width: 72ch; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .measured-card { margin-bottom: 26px; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .privacy-strip ul { columns: 1; }
}

@media (max-width: 420px) {
  body { font-size: 1rem; }
  .shots { grid-template-columns: 1fr 1fr; gap: 12px; }
  .site-nav { gap: 12px; }
}
