/* ── Custom properties ─────────────────────────────────── */
:root {
  --near-black: #1c1c1e;
  --paper: #f7f4ee;
  --gold: #c9922a;        /* decorative only — borders, bars, underlines */
  --gold-text: #7a5715;   /* text on light bg — 5.6:1 on --paper, WCAG AA */
  --muted: #5e5a56;       /* body text on light bg — 6.3:1 on --paper, WCAG AA */
  --border: rgba(28, 28, 30, 0.1);
  --nav-h: 62px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Base ──────────────────────────────────────────────── */
body {
  background: var(--paper);
  color: var(--near-black);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--near-black);
  flex-shrink: 0;
}

.nav-mark { width: 26px; height: auto; }

.nav-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--near-black);
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--muted);
}


.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--near-black); }

/* ── Layout ────────────────────────────────────────────── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-dark { background: var(--near-black); color: var(--paper); }
.btn-dark:hover { opacity: 0.82; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--near-black);
  color: var(--near-black);
}

.btn-outline:hover {
  background: var(--near-black);
  color: var(--paper);
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-row.center { justify-content: center; }

/* ── Focus styles (keyboard navigation) ────────────────── */
:focus-visible {
  outline: 2px solid var(--near-black);
  outline-offset: 3px;
  border-radius: 3px;
}

.btn:focus-visible { outline-offset: 4px; }

.catalog-card:focus-visible,
.nav-brand:focus-visible { border-radius: 6px; }

/* ── Section & hero ────────────────────────────────────── */
.section { padding: 96px 28px; }
.section.alt { background: #edeae3; }

.hero { padding: 88px 28px 72px; text-align: center; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-text);
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 18px;
}

.section-lead {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 52ch;
}

.hero .section-lead { margin: 0 auto 40px; }

/* ── Feature grid ──────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 56px;
}

.feature-cell { background: var(--paper); padding: 36px 32px; }

.feature-glyph {
  width: 42px;
  height: 42px;
  background: var(--near-black);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
  flex-shrink: 0;
}

.feature-name { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.feature-body { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }

/* ── Catalog cards ─────────────────────────────────────── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.catalog-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.catalog-card:hover { border-color: var(--near-black); }
.catalog-card.featured { border-color: var(--near-black); }

.chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 20px;
}

.chip-gold { background: rgba(201, 146, 42, 0.15); color: var(--gold-text); }
.chip-muted { background: rgba(107, 104, 98, 0.1); color: var(--muted); }

.catalog-name { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.catalog-desc { font-size: 14px; color: var(--muted); margin: 0 0 20px; line-height: 1.55; flex: 1; }
.catalog-meta { font-size: 13px; color: var(--muted); margin-top: auto; }

/* ── Pricing ───────────────────────────────────────────── */
.pricing-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  max-width: 860px;
}

.pricing-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 32px 26px;
}

.pricing-card.featured {
  border-color: var(--near-black);
  background: var(--near-black);
  color: var(--paper);
}

.pricing-tier {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 14px;
}

.pricing-card.featured .pricing-tier { color: var(--gold); }

.pricing-price {
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.pricing-period {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 24px;
}

.pricing-card.featured .pricing-period { color: rgba(247, 244, 238, 0.5); }

.pricing-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-feats li {
  font-size: 13px;
  padding-left: 16px;
  position: relative;
}

.pricing-feats li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gold-text);
}

.pricing-card.featured .pricing-feats li::before { color: var(--gold); }

/* ── Platform badges ───────────────────────────────────── */
.platform-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-badges.center { justify-content: center; }

.plat-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--muted);
}

/* ── Mac app mockup ────────────────────────────────────── */
.mockup-scene {
  padding: 0 28px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.mac-window {
  width: 100%;
  max-width: 940px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  box-shadow:
    0 36px 100px rgba(28, 28, 30, 0.2),
    0 2px 8px rgba(28, 28, 30, 0.08);
  border: 1px solid rgba(28, 28, 30, 0.16);
}

.win-chrome {
  background: #e6e3dd;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.tl-wrap { display: flex; gap: 7px; }

.tl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }

.win-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  color: #888480;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  pointer-events: none;
}

.win-body {
  display: flex;
  height: 500px;
}

/* Sidebar column */
.w-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #2c2c2e;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.sb-group {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  padding: 18px 16px 5px;
}

.sb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  cursor: default;
  user-select: none;
}

.sb-item.sel {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  margin: 1px 8px;
  padding: 6px 10px;
}

.sb-badge {
  background: rgba(201, 146, 42, 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
}

.sb-foot {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sb-foot-lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 6px;
}

.sb-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.sb-fill {
  height: 100%;
  width: 60%;
  background: var(--gold);
  border-radius: 2px;
}

/* Goal list column */
.w-list {
  width: 256px;
  flex-shrink: 0;
  background: #f2efea;
  border-right: 1px solid rgba(28, 28, 30, 0.1);
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.wl-head {
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(28, 28, 30, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wl-title { font-size: 16px; font-weight: 600; color: var(--near-black); margin: 0; }

.wl-add {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: var(--near-black);
  color: white;
  font-size: 17px;
  line-height: 23px;
  text-align: center;
  cursor: default;
  user-select: none;
  flex-shrink: 0;
}

.goal-cards { padding: 8px; display: flex; flex-direction: column; gap: 5px; }

.gc {
  background: white;
  border-radius: 9px;
  padding: 11px 12px 11px 16px;
  position: relative;
  cursor: default;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gc::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 9px 0 0 9px;
}

.gc.sel {
  box-shadow: 0 0 0 2px var(--near-black), 0 1px 4px rgba(0, 0, 0, 0.06);
}

.gc-amber::before { background: #c9922a; }
.gc-sage::before  { background: #5d9b6b; }
.gc-blue::before  { background: #4e7fb8; }

.gc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--near-black);
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-date { font-size: 11px; color: var(--muted); margin: 0 0 8px; }

.gc-bar {
  height: 3px;
  background: rgba(28, 28, 30, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.gc-fill { height: 100%; border-radius: 2px; }
.gc-amber .gc-fill { background: #c9922a; width: 67%; }
.gc-sage  .gc-fill { background: #5d9b6b; width: 33%; }
.gc-blue  .gc-fill { background: #4e7fb8; width: 20%; }

/* Detail column */
.w-detail {
  flex: 1;
  background: #faf9f6;
  padding: 22px 24px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.wd-title { font-size: 20px; font-weight: 700; color: var(--near-black); margin: 0 0 6px; }

.wd-due {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: rgba(201, 146, 42, 0.13);
  color: #9a6c1a;
  border-radius: 12px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.smart-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; }

.sp {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(28, 28, 30, 0.07);
  color: var(--near-black);
}

.wd-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 18px;
}

.ms-lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.ms-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(28, 28, 30, 0.06);
  font-size: 13px;
}

.ms-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(28, 28, 30, 0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-check.done {
  background: var(--gold);
  border-color: var(--gold);
}

.ms-check.done::after {
  content: '';
  display: block;
  width: 7px;
  height: 4px;
  border-left: 1.5px solid white;
  border-bottom: 1.5px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

.ms-name { flex: 1; color: var(--near-black); margin: 0; }
.ms-name.done { color: var(--muted); text-decoration: line-through; }
.ms-date-lbl { font-size: 11px; color: var(--muted); }

/* ── iPhone mockup ─────────────────────────────────────── */
.iphone-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  padding: 64px 28px 0;
}

.iphone-text { max-width: 30ch; }

.iphone-text .section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  margin-bottom: 16px;
}

.iphone-text .section-lead { font-size: 16px; }

.iphone {
  width: 224px;
  flex-shrink: 0;
  border: 6px solid var(--near-black);
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(28, 28, 30, 0.2);
  background: var(--near-black);
}

.iphone-notch {
  background: var(--near-black);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iphone-pill {
  width: 66px;
  height: 16px;
  background: #111;
  border-radius: 12px;
}

.iphone-screen { background: #f2efea; }

.iphone-nav {
  padding: 12px 14px 8px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  border-bottom: 1px solid rgba(28, 28, 30, 0.08);
}

.iphone-nav-title { font-size: 17px; font-weight: 700; color: var(--near-black); margin: 0; }
.iphone-nav-sub { font-size: 11px; color: var(--muted); margin: 2px 0 0; }

.iphone-goals { padding: 8px; display: flex; flex-direction: column; gap: 5px; }

.igc {
  background: white;
  border-radius: 9px;
  padding: 10px 12px 10px 14px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.igc::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 9px 0 0 9px;
}

.igc-amber::before { background: #c9922a; }
.igc-sage::before  { background: #5d9b6b; }
.igc-blue::before  { background: #4e7fb8; }

.igc-title { font-size: 12px; font-weight: 600; color: var(--near-black); margin: 0 0 2px; }
.igc-sub   { font-size: 10px; color: var(--muted); margin: 0 0 6px; }

.igc-bar { height: 2px; background: rgba(28, 28, 30, 0.08); border-radius: 2px; overflow: hidden; }
.igc-fill { height: 100%; border-radius: 2px; }
.igc-amber .igc-fill { background: #c9922a; width: 67%; }
.igc-sage  .igc-fill { background: #5d9b6b; width: 33%; }
.igc-blue  .igc-fill { background: #4e7fb8; width: 20%; }

/* ── Prose pages (privacy, support) ────────────────────── */
.prose-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 64px 28px;
}

.prose-wrap h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.prose-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 48px;
}

.prose-wrap h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 12px;
}

.prose-wrap h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.prose-wrap p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
}

.prose-wrap ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.prose-wrap li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 8px;
}

.prose-wrap a {
  color: var(--near-black);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}

.prose-wrap a:hover { color: var(--gold-text); }

.prose-wrap table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  margin: 0 0 24px;
}

.prose-wrap th,
.prose-wrap td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.prose-wrap th {
  font-weight: 600;
  font-size: 14px;
  color: var(--near-black);
}

/* ── FAQ ───────────────────────────────────────────────── */
.faq { max-width: 680px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.faq-q { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.faq-a { font-size: 16px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ── About ─────────────────────────────────────────────── */
.about-lead { max-width: 680px; }

.about-p {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 22px;
}

.stat-row {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 64px;
}

.stat-num {
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--near-black);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Contact ───────────────────────────────────────────── */
.contact-wrap { max-width: 540px; padding: 88px 28px; }

.contact-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
}

.contact-body {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 48px;
  max-width: 38ch;
}

.contact-email {
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  color: var(--near-black);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.15s;
}

.contact-email:hover { color: var(--gold-text); }

/* ── Divider ───────────────────────────────────────────── */
hr.rule { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 800px) {
  .section { padding: 64px 20px; }
  .pricing-row { grid-template-columns: 1fr; max-width: 380px; }
  .win-body { height: 380px; }
  .w-detail { display: none; }
  .w-list { width: 210px; }
  .w-sidebar { width: 164px; }
}

@media (max-width: 540px) {
  .nav-name { display: none; }
  .section { padding: 56px 20px; }
  .win-body { height: 300px; }
  .w-list { display: none; }
  .w-sidebar { flex: 1; }
  .stat-row { gap: 32px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .iphone-text { display: none; }
  .iphone-scene { padding: 48px 28px 0; }
}
