/* ===========================
   Acto — Liquid Glass Planner LP
   =========================== */
:root {
  --sand-bg: #f5f1eb;
  --sand-bg-deep: #ece6dc;
  --sand-paper: #fbf8f3;
  --sand-ink: #1d1a16;
  --sand-ink-soft: rgba(29, 26, 22, 0.62);
  --sand-ink-faint: rgba(29, 26, 22, 0.35);
  --sand-rule: rgba(29, 26, 22, 0.08);
  --sand-rule-strong: rgba(29, 26, 22, 0.14);
  --sand-accent: #b8956b;
  --sand-accent-soft: rgba(184, 149, 107, 0.18);

  --fog-bg: #ececee;
  --fog-bg-deep: #dcdce0;
  --fog-paper: #f6f6f8;
  --fog-ink: #17171a;
  --fog-ink-soft: rgba(23, 23, 26, 0.62);
  --fog-ink-faint: rgba(23, 23, 26, 0.35);
  --fog-rule: rgba(23, 23, 26, 0.08);
  --fog-rule-strong: rgba(23, 23, 26, 0.14);
  --fog-accent: #6b7a8f;
  --fog-accent-soft: rgba(107, 122, 143, 0.18);

  --graphite-bg: #1a1a1d;
  --graphite-bg-deep: #0f0f12;
  --graphite-paper: #232327;
  --graphite-ink: #f2f2f4;
  --graphite-ink-soft: rgba(242, 242, 244, 0.62);
  --graphite-ink-faint: rgba(242, 242, 244, 0.32);
  --graphite-rule: rgba(242, 242, 244, 0.08);
  --graphite-rule-strong: rgba(242, 242, 244, 0.14);
  --graphite-accent: #c5a572;
  --graphite-accent-soft: rgba(197, 165, 114, 0.18);

  --linen-bg: #efe9dd;
  --linen-bg-deep: #e3dccd;
  --linen-paper: #faf5e9;
  --linen-ink: #2a241a;
  --linen-ink-soft: rgba(42, 36, 26, 0.62);
  --linen-ink-faint: rgba(42, 36, 26, 0.35);
  --linen-rule: rgba(42, 36, 26, 0.09);
  --linen-rule-strong: rgba(42, 36, 26, 0.16);
  --linen-accent: #8a6d4b;
  --linen-accent-soft: rgba(138, 109, 75, 0.18);

  /* defaults — Sand */
  --bg: var(--sand-bg);
  --bg-deep: var(--sand-bg-deep);
  --paper: var(--sand-paper);
  --ink: var(--sand-ink);
  --ink-soft: var(--sand-ink-soft);
  --ink-faint: var(--sand-ink-faint);
  --rule: var(--sand-rule);
  --rule-strong: var(--sand-rule-strong);
  --accent: var(--sand-accent);
  --accent-soft: var(--sand-accent-soft);

  --font-jp: "Noto Sans JP", "Hiragino Sans", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "Yu Gothic", sans-serif;
  --font-en: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", "Georgia", "Times New Roman", "Hiragino Mincho ProN", serif;
  --font: var(--font-jp);

  --max-width: 1100px;
  --header-height: 64px;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 12px rgba(29, 26, 22, 0.04);
  --shadow-md: 0 12px 40px rgba(29, 26, 22, 0.08);
  --shadow-lg: 0 24px 64px rgba(29, 26, 22, 0.12);
}

html[lang="en"] {
  --font: var(--font-en);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===========================
   Sections
   =========================== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
  padding: 4px 14px;
  background: var(--accent-soft);
  border-radius: 999px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 56px;
  line-height: 1.9;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-head .section-subtitle {
  margin-bottom: 0;
}

/* ===========================
   Header
   =========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.header-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(29, 26, 22, 0.16);
}

.header-logo-text {
  font-size: 1.1rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--ink);
}

.header-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}

.header-lang:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  top: -260px;
  right: -200px;
  background: radial-gradient(
    closest-side,
    rgba(184, 149, 107, 0.32),
    transparent 70%
  );
  filter: blur(40px);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  bottom: -240px;
  left: -180px;
  background: radial-gradient(
    closest-side,
    rgba(107, 122, 143, 0.24),
    transparent 70%
  );
  filter: blur(40px);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 24px 96px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 6px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 22px;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(
    100deg,
    var(--accent) 0%,
    #d8b48a 60%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 2;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.store-button img {
  height: 52px;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-button:hover img {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(29, 26, 22, 0.18);
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
}

/* ===========================
   iPad frame
   =========================== */
.ipad-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #2a2a2e 0%, #18181b 100%);
  border-radius: 28px;
  padding: 12px;
  box-shadow:
    0 30px 70px rgba(29, 26, 22, 0.28),
    0 8px 20px rgba(29, 26, 22, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ipad-frame-sm {
  max-width: 420px;
}

.ipad-screen {
  width: 100%;
  height: 93.5%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--paper);
  display: flex;
}

/* ===========================
   Liquid Glass planner canvas
   The planner-canvas mimics the actual app's painted background:
   warm radial accents on a paper field, with a slim Sidebar + Page glass.
   =========================== */
.planner-canvas {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 10px;
  gap: 8px;
  font-family: var(--font);
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(184, 149, 107, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(184, 149, 107, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--ink);
}

.planner-canvas::after {
  /* Subtle film-grain overlay so the surface doesn't read flat. */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Slim Sidebar — 54px column with brand + 4 nav buttons + indicator ── */
.planner-sidebar {
  width: 50px;
  flex-shrink: 0;
  border-radius: 12px;
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255, 252, 246, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
}

.planner-brand-mark {
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
}

.planner-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  align-items: center;
}

.planner-nav-btn {
  width: 38px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink-soft);
  background: transparent;
  text-decoration: none;
  padding: 2px;
  flex-shrink: 0;
}

.planner-nav-btn svg {
  display: block;
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.planner-nav-btn .planner-nav-label {
  font-size: 0.42rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  word-break: keep-all;
  max-width: 36px;
}

.planner-nav-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.planner-nav-btn.is-active .planner-nav-label {
  font-weight: 600;
  color: var(--accent);
}

.planner-sidebar-dots {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.planner-sidebar-dots span {
  width: 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--rule-strong);
}

.planner-sidebar-dots span.active {
  background: var(--accent);
}

/* ── Page glass — the right side of the canvas, holds the page content ── */
.planner-page {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.86);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 4px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Spread (two-page layout for weekly view) */
.planner-spread {
  flex: 1;
  display: flex;
  min-width: 0;
}

.planner-spread-spine {
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--rule-strong) 20%,
    var(--rule-strong) 80%,
    transparent 100%
  );
  flex-shrink: 0;
}

/* ===========================
   Cover page (hero mock)
   =========================== */
.cover-page {
  flex: 1;
  display: flex;
  padding: 28px 32px;
  gap: 24px;
}

.cover-page-rail {
  display: flex;
  align-items: center;
  padding-right: 22px;
  border-right: 1px solid var(--rule);
}

.cover-page-rail svg {
  display: block;
  width: 36px;
  height: 36px;
}

.cover-page-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-width: 0;
}

.cover-eyebrow {
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.cover-field-year {
  height: 22px;
  display: flex;
  align-items: flex-end;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
  border-bottom: 1.5px solid var(--rule-strong);
  padding-bottom: 2px;
  font-feature-settings: "lnum";
}

.cover-fields {
  display: flex;
  gap: 16px;
}

.cover-field {
  flex: 1;
  min-width: 0;
}

.cover-field-label {
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 4px;
}

.cover-field-slot {
  height: 22px;
  border-bottom: 1.5px solid var(--rule-strong);
}

.cover-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cover-pill {
  font-size: 0.6rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 0.5px solid rgba(184, 149, 107, 0.3);
  letter-spacing: 0.04em;
}

/* ===========================
   Detail page (Feature 1 mock)
   =========================== */
.detail-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  gap: 12px;
}

.detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
}

.detail-breadcrumb {
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  display: flex;
  gap: 6px;
  align-items: center;
}

.detail-breadcrumb-sep {
  opacity: 0.4;
}

.detail-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 4px;
}

.detail-statusrow {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.status-pill {
  font-size: 0.5rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(29, 26, 22, 0.05);
  color: var(--ink-soft);
  border: 0.5px solid var(--rule);
  letter-spacing: 0.06em;
}

.status-pill.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(184, 149, 107, 0.3);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.meta-cell-label {
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 4px;
}

.meta-cell-slot {
  height: 12px;
  border-bottom: 1.5px solid var(--rule-strong);
}

.meta-cell-progress {
  height: 5px;
  border-radius: 3px;
  background: var(--rule-strong);
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}

.meta-cell-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  right: 60%;
  background: var(--accent);
}

.detail-section-label {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 4px;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--rule);
}

.task-check {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 1.2px solid var(--rule-strong);
  flex-shrink: 0;
  background: transparent;
}

.task-check.is-done {
  background: var(--accent);
  border-color: var(--accent);
}

.task-row-line {
  flex: 1;
  height: 1px;
  border-bottom: 1px dashed var(--rule);
}

.task-row-due {
  width: 36px;
  height: 9px;
  border-bottom: 1px dashed var(--rule);
}

/* ===========================
   Weekly spread (Feature 2 mock)
   =========================== */
.week-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  position: relative;
}

.week-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 8px;
  min-height: 28px;
}

.week-brand {
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}

.week-date {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}

.week-date-slot {
  border-bottom: 1.2px solid var(--rule-strong);
  height: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1px;
  font-size: 0.55rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

.week-date-slot.year { width: 28px; }
.week-date-slot.month { width: 20px; }
.week-date-slot.week { width: 20px; }

.week-date-sep {
  color: var(--ink-faint);
  font-size: 0.6rem;
}

.week-projects {
  display: flex;
  gap: 3px;
}

.week-project-chip {
  font-size: 0.45rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 0.5px solid rgba(184, 149, 107, 0.3);
  letter-spacing: 0.04em;
}

.week-days {
  flex: 1;
  display: flex;
  min-height: 0;
}

.week-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--rule);
  padding: 5px 5px 6px;
  min-width: 0;
}

.week-day:first-child {
  border-left: none;
}

.week-day.is-weekend {
  background: var(--accent-soft);
  background: rgba(184, 149, 107, 0.05);
}

.week-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
}

.week-day-label {
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}

.week-day.is-weekend .week-day-label {
  color: var(--accent);
}

.week-day-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-faint);
  min-width: 14px;
  text-align: right;
  border-bottom: 1px dashed var(--rule-strong);
  line-height: 1;
}

.week-day-tasks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.week-day-task {
  display: flex;
  align-items: center;
  gap: 4px;
}

.week-day-task .task-check {
  width: 7px;
  height: 7px;
}

.week-day-task .task-row-line {
  border-bottom-style: dotted;
}

.week-side-panel {
  width: 90px;
  flex-shrink: 0;
  border-left: 1px solid var(--rule);
  padding: 5px 4px 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.week-side-label {
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}

.week-side-checks {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.week-side-check {
  display: flex;
  align-items: center;
  gap: 4px;
}

.week-side-check span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  border: 1px solid var(--rule-strong);
  flex-shrink: 0;
}

.week-side-check em {
  flex: 1;
  height: 1px;
  border-bottom: 1px dotted var(--rule);
  font-style: normal;
}

.week-side-notes {
  flex: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 9px,
    var(--rule) 9px,
    var(--rule) 10px
  );
  border-radius: 3px;
}

/* ===========================
   Search mockup (Feature 4)
   =========================== */
.search-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 14px;
  gap: 12px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.search-bar svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--ink-faint);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px;
}

.search-result.is-top {
  background: rgba(184, 149, 107, 0.08);
}

.search-result-thumb {
  width: 36px;
  height: 48px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.search-result-thumb::before,
.search-result-thumb::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1px;
  background: var(--ink);
  opacity: 0.3;
}

.search-result-thumb::before { top: 8px; }
.search-result-thumb::after { top: 14px; right: auto; width: 60%; }

.search-result-thumb i {
  position: absolute;
  top: 22px;
  left: 4px;
  right: 4px;
  height: 6px;
  background: var(--accent);
  opacity: 0.5;
  border-radius: 1px;
  display: block;
}

.search-result-meta {
  flex: 1;
  font-size: 0.7rem;
  color: var(--ink-soft);
  line-height: 1.45;
  min-width: 0;
}

.search-result-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.78rem;
  margin-bottom: 1px;
}

/* ===========================
   Pencil floating accent
   =========================== */
.pencil {
  position: absolute;
  right: -18px;
  bottom: 12%;
  width: 110px;
  height: 14px;
  background: linear-gradient(90deg, #f0e4d2 0%, #e3d3b8 60%, #d4bd95 100%);
  border-radius: 7px;
  transform: rotate(-22deg);
  box-shadow: 0 8px 22px rgba(29, 26, 22, 0.22);
  z-index: 3;
}

.pencil::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #f0e4d2 0%, #b89564 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

.pencil::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 10px;
  height: 14px;
  background: #1d1a16;
  border-radius: 0 7px 7px 0;
}

/* ===========================
   Pain (problems)
   =========================== */
.pain {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.pain .section-inner {
  max-width: 960px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pain-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.pain-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.pain-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
}

.pain-text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* ===========================
   Features
   =========================== */
.features {
  background: var(--bg);
}

.features .section-inner {
  max-width: 1000px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.is-reverse {
  direction: rtl;
}

.feature-row.is-reverse > * {
  direction: ltr;
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.feature-text {
  min-width: 0;
}

.feature-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.feature-heading {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  line-height: 1.45;
}

.feature-description {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.95;
}

.feature-bullets {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.feature-bullets li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
  line-height: 1.7;
}

.feature-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ===========================
   Sections (5 sections of the planner)
   =========================== */
.sections {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.section-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--rule-strong);
  border-radius: 18px;
  padding: 24px 18px 22px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-card-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
  line-height: 1;
}

.section-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

.section-card-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-card-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.section-card-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ===========================
   Themes
   =========================== */
.themes {
  background: var(--bg);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}

.theme-card {
  text-align: center;
  transition: transform 0.25s;
}

.theme-card:hover {
  transform: translateY(-4px);
}

.theme-frame {
  border-radius: 22px;
  padding: 10px;
  background: linear-gradient(150deg, #2a2a2e 0%, #18181b 100%);
  box-shadow: var(--shadow-md);
}

.theme-screen {
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  position: relative;
  font-family: var(--font);
}

.theme-screen-canvas {
  flex: 1;
  display: flex;
  padding: 8px;
  gap: 6px;
  position: relative;
}

.theme-screen-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.theme-screen-sidebar {
  width: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(255, 252, 246, 0.55);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 2px;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.theme-screen-sidebar i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: block;
}

.theme-screen-sidebar i:nth-child(1) {
  background: currentColor;
  opacity: 0.95;
  border-radius: 2px;
}

.theme-screen-sidebar i:nth-child(n+2) {
  background: currentColor;
  opacity: 0.18;
  border-radius: 2px;
}

.theme-screen-sidebar i.active {
  opacity: 0.6;
}

.theme-screen-page {
  flex: 1;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.theme-screen-eyebrow {
  font-size: 0.42rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.5;
}

.theme-screen-rule {
  height: 1px;
  width: 100%;
  margin: 2px 0 4px;
}

.theme-screen-line {
  height: 3px;
  border-radius: 2px;
  margin-bottom: 3px;
}

.theme-screen-line.short { width: 40%; }
.theme-screen-line.medium { width: 70%; }

.theme-screen-tag {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.45rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Sand */
.theme-sand .theme-screen-canvas {
  background:
    radial-gradient(circle at 20% 20%, rgba(184, 149, 107, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(184, 149, 107, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--sand-bg) 0%, var(--sand-bg-deep) 100%);
}
.theme-sand .theme-screen-page {
  background: rgba(251, 248, 243, 0.85);
  color: var(--sand-ink);
}
.theme-sand .theme-screen-sidebar { color: var(--sand-accent); }
.theme-sand .theme-screen-rule { background: rgba(29,26,22,0.14); }
.theme-sand .theme-screen-line { background: var(--sand-accent); opacity: 0.5; }
.theme-sand .theme-screen-tag {
  background: var(--sand-accent-soft);
  color: var(--sand-accent);
}

/* Fog */
.theme-fog .theme-screen-canvas {
  background:
    radial-gradient(circle at 20% 20%, rgba(107, 122, 143, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(107, 122, 143, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--fog-bg) 0%, var(--fog-bg-deep) 100%);
}
.theme-fog .theme-screen-page {
  background: rgba(246, 246, 248, 0.88);
  color: var(--fog-ink);
}
.theme-fog .theme-screen-sidebar { color: var(--fog-accent); }
.theme-fog .theme-screen-rule { background: rgba(23,23,26,0.14); }
.theme-fog .theme-screen-line { background: var(--fog-accent); opacity: 0.55; }
.theme-fog .theme-screen-tag {
  background: rgba(107, 122, 143, 0.18);
  color: var(--fog-accent);
}

/* Graphite */
.theme-graphite .theme-screen-canvas {
  background:
    radial-gradient(circle at 20% 20%, rgba(197, 165, 114, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(197, 165, 114, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--graphite-bg) 0%, var(--graphite-bg-deep) 100%);
}
.theme-graphite .theme-screen-page {
  background: rgba(35, 35, 39, 0.88);
  color: var(--graphite-ink);
}
.theme-graphite .theme-screen-sidebar {
  color: var(--graphite-accent);
  background: rgba(20, 18, 15, 0.45);
  border-color: rgba(255, 255, 255, 0.1);
}
.theme-graphite .theme-screen-rule { background: rgba(242,242,244,0.14); }
.theme-graphite .theme-screen-line { background: var(--graphite-accent); opacity: 0.6; }
.theme-graphite .theme-screen-tag {
  background: rgba(197, 165, 114, 0.22);
  color: var(--graphite-accent);
}

/* Linen */
.theme-linen .theme-screen-canvas {
  background:
    radial-gradient(circle at 20% 20%, rgba(138, 109, 75, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(138, 109, 75, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--linen-bg) 0%, var(--linen-bg-deep) 100%);
}
.theme-linen .theme-screen-page {
  background: rgba(250, 245, 233, 0.88);
  color: var(--linen-ink);
}
.theme-linen .theme-screen-sidebar { color: var(--linen-accent); }
.theme-linen .theme-screen-rule { background: rgba(42,36,26,0.16); }
.theme-linen .theme-screen-line { background: var(--linen-accent); opacity: 0.5; }
.theme-linen .theme-screen-tag {
  background: rgba(138, 109, 75, 0.18);
  color: var(--linen-accent);
}

.theme-label {
  display: block;
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.theme-label-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.theme-premium-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--rule-strong);
  padding: 6px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.themes-foot {
  text-align: center;
}

/* ===========================
   Pricing table
   =========================== */
.pricing {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.pricing-table-wrap {
  max-width: 880px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}

.pricing-table colgroup col:nth-child(1) { width: 44%; }
.pricing-table colgroup col:nth-child(2) { width: 26%; }
.pricing-table colgroup col:nth-child(3) { width: 30%; }

.pricing-table thead th {
  padding: 40px 16px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  vertical-align: top;
  border-bottom: 1px solid var(--rule-strong);
  position: relative;
}

.pricing-table thead th:first-child {
  border-bottom: 1px solid var(--rule-strong);
}

.pricing-table thead th:not(:first-child) {
  text-align: center;
  border-left: 1px solid var(--rule-strong);
}

.pricing-table thead th.is-highlight {
  background: linear-gradient(180deg, rgba(184, 149, 107, 0.16), transparent);
}

.pricing-plan {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--ink);
}

.pricing-plan-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
  min-height: 1.4em;
}

.pricing-price {
  display: block;
  margin-top: 16px;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.pricing-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 2px;
}

.pricing-price-annual {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 6px;
  min-height: 1.4em;
  line-height: 1.4;
}

.pricing-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--accent);
  padding: 3px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(184, 149, 107, 0.35);
}

.pricing-table tbody tr {
  border-bottom: 1px solid var(--rule);
}

.pricing-table tbody tr:last-child {
  border-bottom: none;
}

.pricing-table tbody td,
.pricing-table tbody th {
  padding: 18px 16px;
  font-size: 0.9rem;
  vertical-align: middle;
  line-height: 1.5;
  border-left: 1px solid var(--rule-strong);
}

.pricing-table tbody th {
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}

.pricing-table tbody td {
  text-align: center;
  color: var(--ink-soft);
}

.pricing-table tbody td.is-highlight {
  background: rgba(184, 149, 107, 0.06);
  color: var(--ink);
  font-weight: 500;
}

.pricing-table tbody td .check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

.pricing-table tbody td .dash {
  color: var(--ink-faint);
}

.pricing-foot {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ===========================
   Privacy callout
   =========================== */
.privacy-callout {
  background: var(--bg);
}

.privacy-callout .section-inner {
  max-width: 820px;
  text-align: center;
}

.privacy-callout-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-weight: 700;
}

.privacy-callout-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.privacy-callout-text {
  color: var(--ink-soft);
  line-height: 1.95;
}

/* ===========================
   CTA
   =========================== */
.cta {
  background: linear-gradient(135deg, #1d1a16 0%, #2a241d 60%, #3a2f24 100%);
  color: #faf5e9;
  position: relative;
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cta::before {
  width: 540px;
  height: 540px;
  background: rgba(184, 149, 107, 0.4);
  top: -200px;
  right: -120px;
}

.cta::after {
  width: 420px;
  height: 420px;
  background: rgba(107, 122, 143, 0.3);
  bottom: -200px;
  left: -160px;
}

.cta .section-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 88px 24px;
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.4;
}

.cta-text {
  color: rgba(250, 245, 233, 0.78);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.85;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta .store-button img {
  height: 60px;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: #1d1a16;
  color: rgba(250, 245, 233, 0.6);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  gap: 28px;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #faf5e9;
  font-weight: 700;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(250, 245, 233, 0.55);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(250, 245, 233, 0.7);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(250, 245, 233, 0.4);
}

/* ===========================
   Reveal on scroll
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-children > * {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-children.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-children.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-children.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-children.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-children.is-visible > *:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-children > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 960px) {
  .section-title { font-size: 1.7rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 24px 72px;
    text-align: center;
  }
  .hero-eyebrow { margin-left: auto; margin-right: auto; }
  .hero-title { font-size: 2.1rem; }
  .hero-buttons { justify-content: center; }
  .hero-visual { min-height: 360px; }
  .ipad-frame { max-width: 440px; }

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

  .feature-row,
  .feature-row.is-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
    direction: ltr;
    text-align: center;
  }
  .feature-bullets li { text-align: left; }

  .sections-grid { grid-template-columns: repeat(2, 1fr); }
  .themes-grid { grid-template-columns: repeat(2, 1fr); }

  .pricing-table thead th {
    padding: 36px 10px 20px;
    font-size: 0.85rem;
  }
  .pricing-table tbody th,
  .pricing-table tbody td {
    padding: 14px 10px;
    font-size: 0.82rem;
  }

  .pricing-price { font-size: 1.4rem; }
  .pricing-badge { font-size: 0.56rem; padding: 2px 10px; }

  .week-side-panel { width: 70px; }
}

@media (max-width: 640px) {
  .section-inner { padding: 64px 18px; }
  .header-nav { display: none; }
  .header-inner { padding: 0 18px; }

  .hero-title { font-size: 1.7rem; }
  .hero-description { font-size: 0.95rem; }
  .ipad-frame { max-width: 360px; padding: 10px; border-radius: 22px; }
  .ipad-screen { border-radius: 12px; }
  .pencil { width: 72px; right: 20px; height: 10px; }
  .pencil::before { width: 10px; height: 10px; left: -10px; }
  .pencil::after { width: 8px; height: 10px; }

  .section-title { font-size: 1.45rem; }

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

  .privacy-callout-card { padding: 40px 24px; }

  .cta-title { font-size: 1.5rem; }

  .pricing-table-wrap { border-radius: 18px; }
  .pricing-table thead th { padding: 30px 8px 16px; font-size: 0.78rem; }
  .pricing-plan { font-size: 0.95rem; }
  .pricing-plan-sub { font-size: 0.7rem; }
  .pricing-price { font-size: 1.1rem; margin-top: 10px; }
  .pricing-price small { display: block; font-size: 0.7rem; }
  .pricing-price-annual { font-size: 0.65rem; margin-top: 4px; }
  .pricing-badge { font-size: 0.5rem; top: 10px; padding: 2px 8px; }
  .pricing-table tbody th,
  .pricing-table tbody td { padding: 12px 8px; font-size: 0.76rem; }

  .cover-page { padding: 18px 18px; gap: 14px; }
  .cover-page-rail { padding-right: 12px; }

  .week-side-panel { width: 60px; }
  .week-day { padding: 4px 3px; }
}
