/* ─── Custom Properties ─── */
:root {
  --blue: #2563eb;
  --blue-lt: #eff6ff;
  --blue-dk: #1d4ed8;
  --green: #22c55e;
  --green-lt: #dcfce7;
  --red: #dc2626;

  --bg: #f9fafb;
  --bg-alt: #ffffff;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --border: rgba(17, 24, 39, 0.08);
  --border-md: rgba(17, 24, 39, 0.12);

  --shadow-sm: 0 1px 3px rgba(17,24,39,.07), 0 1px 2px rgba(17,24,39,.04);
  --shadow-md: 0 4px 16px rgba(17,24,39,.09);
  --shadow-lg: 0 16px 48px rgba(17,24,39,.13);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --nav-h: 60px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* ─── Layout ─── */
.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ─── Utilities ─── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ─── Pill ─── */
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-lt);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ─── Section label ─── */
.section-label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover { opacity: 0.82; }
.btn:active { opacity: 0.7; }

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-outline {
  background: var(--bg-alt);
  color: var(--ink);
  border-color: var(--border-md);
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

/* ─── Nav ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(249,250,251,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ─── Hero ─── */
.hero {
  padding: 72px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-copy h1 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.lede {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 440px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ─── Phrase band ─── */
.phrase-band {
  padding: 52px 0;
  background: var(--ink);
}

.phrase {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ─── Why ─── */
.why {
  padding: 100px 0;
}

.why-inner {
  max-width: 640px;
}

.why-inner h2 {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.why-body {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}

/* ─── Features ─── */
.features {
  padding: 0 0 100px;
}

.section-heading {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card {
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.feature-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ─── Quick add ─── */
.quickadd {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quickadd h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
  max-width: 560px;
}

.qa-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.qa-item {
  display: grid;
  grid-template-columns: 1fr 20px auto;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
}

.qa-input {
  font-size: 13px;
  color: var(--ink-2);
  font-family: var(--font);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: italic;
}

.qa-input strong {
  font-style: normal;
  font-weight: 700;
  color: var(--blue);
}

.qa-arrow {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.qa-result {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.qa-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.qa-badge--task  { background: var(--green-lt); color: #166534; }
.qa-badge--event { background: var(--blue-lt);  color: var(--blue-dk); }
.qa-badge--inbox { background: #f3f4f6;         color: var(--ink-2); }

.qa-desc {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ─── Mac native ─── */
.mac-native {
  padding: 100px 0;
}

.mac-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mac-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mac-text h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.mac-body {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: var(--muted);
}

.mac-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.mac-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
}

.mac-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--green-lt);
  color: #15803d;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Mac section visual */
.mac-visual {
  display: flex;
  justify-content: center;
}

.mac-bar-demo {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mbd-bar {
  height: 38px;
  border-radius: 12px 12px 0 0;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 12.5px;
  color: #4d5562;
}

.mbd-left, .mbd-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mbd-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #1d1d1f;
}

.mbd-item--faint { color: #9ca3af; }
.mbd-icon { color: #9ca3af; }
.mbd-icon--active { color: var(--blue); font-weight: 700; }

.mbd-callout {
  display: flex;
  justify-content: flex-end;
  padding: 5px 18px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.01em;
}

.mbd-mini-popover {
  border-radius: 0 0 12px 12px;
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--border-md);
  border-top: none;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-lg);
}

.mbd-pop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mbd-pop-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.mbd-pop-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.mbd-pop-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--blue-lt);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.mbd-pop-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mbd-pop-dot {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 1.5px solid #c3cad5;
}

.mbd-pop-dot--event {
  border-radius: 4px;
  background: var(--blue-lt);
  border-color: transparent;
}

.mbd-pop-title {
  flex: 1;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mbd-pop-meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* ─── Final CTA ─── */
.final-cta {
  padding: 120px 0;
  background: var(--ink);
  color: #fff;
}

.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta-tagline {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.01em;
  margin-bottom: -4px;
}

.cta-inner h2 {
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
}

.cta-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  margin-top: -4px;
}

.cta-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

.cta-input {
  flex: 1;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 0 14px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}

.cta-input::placeholder { color: rgba(255,255,255,0.38); }
.cta-input:focus { border-color: rgba(255,255,255,0.4); }

.btn-cta {
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  border: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.btn-cta:hover { opacity: 0.88; }

.cta-note {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  margin-top: -4px;
}

.cta-success {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  padding: 12px 0;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ═══════════════════════════════════════
   Mockup — matches actual app UI
═══════════════════════════════════════ */

.wtdMockup {
  position: relative;
  width: min(100%, 610px);
  padding: 18px 18px 24px;
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(246,247,249,.92)),
    #f7f8fa;
  box-shadow:
    0 30px 80px rgba(20,28,38,.16),
    inset 0 1px 0 rgba(255,255,255,.8);
}

.macMenuBar {
  height: 34px;
  border-radius: 16px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4d5562;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(35,43,54,.08);
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(20,28,38,.08);
}

.menuLeft,
.menuRight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.appleDot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #1d1d1f;
}

.menuIcon { color: #6b7280; }
.menuIcon.active { color: var(--blue); }

.popover {
  position: relative;
  width: 380px;
  height: 560px;
  margin: 12px 34px 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(242,243,245,.9)),
    #f2f3f5;
  border: 1px solid rgba(20,28,38,.1);
  box-shadow:
    0 26px 70px rgba(20,28,38,.22),
    inset 0 1px 0 rgba(255,255,255,.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Header */
.popoverHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
}

.pop-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pop-app-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(37,99,235,.14);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 800;
}

.popoverHeader h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #111827;
}

.pop-time {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
}

.pop-header-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.pop-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  cursor: default;
  color: #6b7280;
  font-size: 14px;
  line-height: 1;
}

/* Quick add */
.quickAdd {
  margin: 0 14px 10px;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #7b8492;
  background: #fff;
  border: 1px solid rgba(20,28,38,.08);
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(20,28,38,.06);
}

.quickAddLine {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plus {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.pop-placeholder {
  flex: 1;
  color: #9ca3af;
  font-size: 13px;
}

.qa-submit {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: default;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

/* Sections */
.popoverContent {
  height: 446px;
  overflow: hidden;
  padding: 0 12px 12px;
}

.mockSection + .mockSection { margin-top: 10px; }

.sectionTitle {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  color: #777f8b;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sectionItems { display: grid; gap: 5px; }

.mockRow {
  min-height: 31px;
  display: grid;
  grid-template-columns: 17px minmax(0,1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.75);
  border: 0;
  box-shadow: none;
}

.mockRow.isDone { background: rgba(255,255,255,.55); }

.check {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: #fff;
  flex-shrink: 0;
}

.check.checked {
  border-color: var(--green);
  background: var(--green);
}

.eventIcon {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.eventIcon::before {
  content: "";
  width: 13px;
  height: 14px;
  border: 1.5px solid var(--blue);
  border-top-width: 3px;
  border-radius: 3px;
  box-shadow: inset 0 3px 0 rgba(37,99,235,.12);
}

.rowTitle {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 500;
  color: #1f2937;
}

.isDone .rowTitle { color: #9aa3af; text-decoration: line-through; }

.rowMeta {
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 500;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

.rowMeta--urgent { color: var(--red); font-weight: 600; }

.joinButton {
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(20,28,38,.13);
  border-radius: 6px;
  color: #1f2937;
  background: rgba(255,255,255,.8);
  font-size: 10.5px;
  font-weight: 700;
  cursor: default;
}

.row-trash {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  flex-shrink: 0;
  cursor: default;
  font-size: 0;
  line-height: 1;
}

.row-trash::before {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5.4 1.8h3.2c.45 0 .82.31.93.73l.1.37h2.07c.28 0 .5.22.5.5s-.22.5-.5.5H2.3a.5.5 0 0 1 0-1h2.07l.1-.37c.11-.42.48-.73.93-.73Zm.07 1.1h3.06l-.03-.12H5.5l-.03.12ZM3.26 4.75c-.03-.35.25-.65.6-.65h6.28c.35 0 .63.3.6.65l-.55 6.5a1.25 1.25 0 0 1-1.25 1.15H5.06a1.25 1.25 0 0 1-1.25-1.15l-.55-6.5Zm1.1.45.5 5.96c.01.08.08.14.16.14h3.96c.08 0 .15-.06.16-.14l.5-5.96H4.36Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5.4 1.8h3.2c.45 0 .82.31.93.73l.1.37h2.07c.28 0 .5.22.5.5s-.22.5-.5.5H2.3a.5.5 0 0 1 0-1h2.07l.1-.37c.11-.42.48-.73.93-.73Zm.07 1.1h3.06l-.03-.12H5.5l-.03.12ZM3.26 4.75c-.03-.35.25-.65.6-.65h6.28c.35 0 .63.3.6.65l-.55 6.5a1.25 1.25 0 0 1-1.25 1.15H5.06a1.25 1.25 0 0 1-1.25-1.15l-.55-6.5Zm1.1.45.5 5.96c.01.08.08.14.16.14h3.96c.08 0 .15-.06.16-.14l.5-5.96H4.36Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.row-trash::after {
  content: none;
}

/* ─── Responsive ─── */

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .wrap { width: calc(100% - 32px); }

  .hero { padding: 48px 0 56px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .lede { max-width: 100%; }

  .mac-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .qa-list { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .wtdMockup {
    padding: 12px;
    border-radius: 22px;
  }

  .macMenuBar { font-size: 11px; }

  .menuLeft span:nth-child(n + 3) { display: none; }

  .popover {
    width: 100%;
    margin: 12px 0 0;
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-input { width: 100%; }

  .feature-grid { grid-template-columns: 1fr; }

  .mac-bar-demo { max-width: 100%; }
}
