/* Ploddy landing — "Minimalist Focus" theme.
   Drop-in replacement for the previous styles.css: same class names, no HTML changes needed.
   Edit the tokens below to retheme the whole page. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Colors — cool blue-grey canvas, white surfaces, deep navy ink */
  --bg: #e8edf3;
  --bg-glow: #f4f7fa;
  --surface: #ffffff;
  --surface-sunk: #f1f4f8;
  --text: #1c2736;
  --text-muted: #5a6778;
  --divider: #d3dbe5;
  --divider-soft: #e3e8ef;
  --accent: #2b3a4f;          /* navy pill buttons */
  --accent-hover: #1f2b3c;
  --accent-strong: #3a4d66;
  --accent-deep: #1c2736;
  --accent-soft: #dfe6ee;
  --accent-tint: #c9d4e1;
  --slate: #7c8a9c;           /* secondary illustration tone */
  --on-accent: #ffffff;

  --on-track: #2d9b6f;
  --needs-attention: #f59e0b;

  /* Type */
  --font-heading: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --heading-weight: 600;
  --heading-case: none;

  /* Shape */
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(28 39 54 / .05), 0 2px 8px rgb(28 39 54 / .04);
  --shadow-md: 0 2px 6px rgb(28 39 54 / .05), 0 18px 40px -12px rgb(28 39 54 / .18);
  --frame-marks: none; /* corner registration marks are off in this theme; set to block to bring them back */

  /* Layout */
  --max-width: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--bg-glow), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--heading-weight); text-transform: var(--heading-case); margin: 0; letter-spacing: -.02em; color: var(--text); }
p { margin: 0; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }

/* Frame — now a clean white panel with a soft shadow */
.frame { position: relative; background: var(--surface); border: 1px solid var(--divider-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.frame > .corner { display: var(--frame-marks); position: absolute; width: 11px; height: 11px; pointer-events: none; color: var(--slate); }
.frame > .corner::before, .frame > .corner::after { content: ""; position: absolute; background: currentColor; }
.frame > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.frame > .corner::after { top: 5px; left: 0; width: 100%; height: 1px; }
.corner.tl { top: -6px; left: -6px; } .corner.tr { top: -6px; right: -6px; }
.corner.bl { bottom: -6px; left: -6px; } .corner.br { bottom: -6px; right: -6px; }

/* Buttons — pill shaped, navy primary */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; font-family: var(--font-body); font-weight: 500; font-size: 15px; line-height: 1.2; color: var(--text); background: transparent; border: 1px solid var(--divider); border-radius: var(--radius-pill); cursor: pointer; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px -6px rgb(28 39 54 / .45); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); }
.btn-primary.frame { box-shadow: 0 6px 16px -6px rgb(28 39 54 / .45); border-radius: var(--radius-pill); }
.btn-secondary { background: var(--surface); border-color: var(--divider); }
.btn-secondary:hover { border-color: var(--slate); color: var(--text); }
.btn-ghost { border-color: transparent; color: var(--accent-strong); }
.btn-ghost:hover { background: var(--accent-soft); }

/* Tags — soft pills */
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; letter-spacing: 0; padding: 4px 12px; border-radius: var(--radius-pill); }
.tag-accent { background: var(--accent-soft); color: var(--accent-deep); }
.tag-outline { border: 1px solid var(--divider); background: var(--surface); color: var(--text-muted); }
.tag-outline-ontrack { border: 1px solid var(--on-track); background: var(--surface); color: var(--text-muted); }
.tag-attention { border: 1px solid var(--needs-attention); background: var(--needs-attention); color: var(--text-muted); opacity: .5;}

/* Nav */
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 20px; padding-bottom: 20px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; margin-right: auto; color: var(--text); text-decoration: none; }
.nav-brand::before { content: ""; width: 48px; height: 48px; background-size: contain; display: inline-block; background-image: url("favicon.png"); background-repeat: no-repeat;background-position: center;vertical-align: middle;}
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-link:hover { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: center; padding: clamp(48px, 8vw, 104px) 0; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--accent-strong); }
.lede { font-size: 18px; max-width: 46ch; color: var(--text-muted); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fine-print { font-size: 13px; color: var(--text-muted); }
.hero-visual { display: flex; justify-content: center; min-width: 0; }

/* Phone mockup — rounded device with soft lift */
.phone { width: min(100%, 320px); aspect-ratio: 9 / 19.5; border-radius: 40px; padding: 10px; background: var(--surface); border: 1px solid var(--divider-soft); box-shadow: var(--shadow-md); overflow: hidden; }
.phone img, .phone .placeholder { border-radius: 30px; }
.phone img { width: 100%; height: 100%; object-fit: contain; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 24px; text-align: center; font-size: 13px; color: var(--text-muted); background: var(--surface-sunk); }

/* Sections */
.section { padding: clamp(48px, 6vw, 88px) 0; scroll-margin-top: 20px; }
.section:last-of-type { padding-bottom: clamp(56px, 7vw, 104px); }
.eyebrow { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--slate); margin-bottom: 14px; }
.rule { height: 1px; background: var(--divider); margin-bottom: 40px; }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.body-lg { font-size: 17px; line-height: 1.65; max-width: 44ch; color: var(--text-muted); }
.body { font-size: 15px; color: var(--text-muted); }
.card { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 20px; letter-spacing: -.015em; }

/* Dashboard — styled as an app window with traffic-light dots */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.split > .frame { overflow: hidden; box-shadow: var(--shadow-md); padding-top: 38px; }
.split > .frame::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 38px; background: var(--surface-sunk); border-bottom: 1px solid var(--divider-soft); }
.split > .frame::after { content: ""; position: absolute; top: 15px; left: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-tint); box-shadow: 15px 0 0 var(--accent-tint), 30px 0 0 var(--accent-tint); }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 22px; border-bottom: 1px solid var(--divider-soft); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.dash-head span:last-child { color: var(--slate); }
.dash-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--divider-soft); }
.dash-row:last-child { border-bottom: 0; }
.dash-main { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dash-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--font-heading); font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.progress { display: flex; gap: 12px; align-items: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-muted); white-space: nowrap; }
.bar { flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--surface-sunk); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.dash-next { flex: 1 1 160px; font-size: 14px; line-height: 1.45; color: var(--accent-strong); }

/* Progress-model cards */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 3vw, 32px); margin-top: clamp(48px, 6vw, 80px); }
.mode-art { height: 112px; padding: 18px; border-radius: var(--radius); background: var(--surface-sunk); margin-bottom: 6px; }
.check-art { display: flex; flex-direction: column; justify-content: center; gap: 11px; }
.check-art div { display: flex; gap: 10px; align-items: center; }
.box { width: 16px; height: 16px; flex: none; border: 1.5px solid var(--slate); border-radius: 5px; display: grid; place-items: center; font-size: 11px; color: var(--on-accent); }
.box.done { background: var(--accent); border-color: var(--accent); }
.line { height: 6px; border-radius: var(--radius-pill); background: var(--divider); }
.pipe-art { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: start; }
.pipe-art div { display: flex; flex-direction: column; gap: 6px; border-top: 3px solid var(--accent); border-radius: 2px; padding-top: 8px; }
.pipe-art div.empty { border-top-color: var(--divider); }
.pipe-art span { height: 16px; border-radius: 5px; background: var(--surface); border: 1px solid var(--divider-soft); }
.pipe-art span.active { background: var(--accent-tint); border-color: var(--accent-strong); }
.mile-art { position: relative; display: flex; align-items: center; }
.mile-art::before { content: ""; position: absolute; left: 26px; right: 26px; top: 50%; height: 4px; margin-top: -2px; border-radius: var(--radius-pill); background: var(--divider); }
.mile-art::after { content: ""; position: absolute; left: 26px; width: 38%; top: 50%; height: 4px; margin-top: -2px; border-radius: var(--radius-pill); background: var(--accent); }
.mile-art .points { position: relative; z-index: 1; width: 100%; display: flex; justify-content: space-between; }
.diamond { width: 16px; height: 16px; background: var(--surface); border: 2px solid var(--slate); border-radius: 50%; }
.diamond.done { background: var(--accent); border-color: var(--accent); }

/* Philosophy */
.statement { font-family: var(--font-heading); font-weight: 600; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.12; letter-spacing: -.035em; max-width: 22ch; margin-bottom: clamp(40px, 5vw, 64px); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.principles > div { padding: 26px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--divider-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.principles h3 { font-size: 19px; letter-spacing: -.015em; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(20px, 3vw, 32px); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); font-family: var(--font-heading); font-weight: 600; font-size: 14px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 4px; }

/* Get the app */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 3vw, 32px); }
.platform { padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.platform:first-child { box-shadow: var(--shadow-md); }
.platform h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -.03em; }
.platform p { font-size: 16px; max-width: 40ch; color: var(--text-muted); }
.platform .btn { margin-top: 10px; }

/* Footer */
.footer { border-top: 1px solid var(--divider); }
.footer .container { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--text-muted); }
.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--text); margin-right: auto; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Waitlist modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgb(28 39 54 / .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.dialog { width: min(440px, 100%); background: var(--surface); padding: 32px; border-radius: 22px; box-shadow: 0 24px 60px -12px rgb(28 39 54 / .35); }
.dialog-view { display: flex; flex-direction: column; gap: 16px; }
.dialog-view[hidden] { display: none; }
.dialog h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.025em; }
.dialog p { font-size: 15px; color: var(--text-muted); }
.dialog .tag { align-self: flex-start; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.input { width: 100%; min-height: 46px; padding: 8px 14px; font: inherit; font-size: 16px; color: var(--text); caret-color: var(--accent); background: var(--surface-sunk); border: 1px solid var(--divider-soft); border-radius: var(--radius); transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.input:hover { border-color: var(--divider); }
.input:focus-visible { outline: none; background: var(--surface); border-color: var(--accent-strong); box-shadow: 0 0 0 4px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: #b3261e; }
.error { font-size: 13px; color: #b3261e; margin-top: 6px; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.dialog-actions .btn { min-height: 42px; }
.fade-target { opacity: 1; transition: opacity 0.5s ease-in-out; }
.fade-out { opacity: 0; }
.modal-name { display: none !important; position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none;}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn-primary:hover { transform: none; }
}
