/* Oasis Planner — marketing homepage.
   Tokens mirror .claude/skills/oasis-planner-design/colors_and_type.css. */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('fonts/AtkinsonHyperlegibleNext-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  src: url('fonts/AtkinsonHyperlegibleMono-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --sand-50: #FBF5EA; --sand-100: #F6E8D0; --sand-300: #EBC78F; --sand-500: #D99E4E;
  --gold-500: #C89B5C; --gold-600: #AE8347;
  --ink-950: #0F2133; --ink-900: #14293D; --ink-800: #1D3C59; --ink-700: #2A4E6E;
  --blue-50: #E9F2F8; --blue-100: #CCE2EF; --blue-300: #6FB1D4; --blue-500: #2D7DA0; --blue-600: #246585; --blue-700: #1C4F6B;
  --green-50: #EEF5E6; --green-100: #DBEBC9; --green-500: #6D9755; --green-600: #4A7B4C;
  --grey-50: #F4F6F8; --grey-100: #E9EDF1; --grey-200: #DBE2E8; --grey-400: #9AA8B4; --grey-600: #4F5E6B;
  --clay: #C8503C;

  --bg-canvas: #EEF3F6;
  --fg-primary: var(--ink-900);
  --fg-secondary: var(--grey-600);
  --fg-tertiary: var(--grey-400);
  --accent: var(--blue-500);
  --border-hair: rgba(20, 41, 61, 0.08);
  --border-soft: rgba(20, 41, 61, 0.12);

  --font: 'Atkinson Hyperlegible Next', -apple-system, system-ui, 'Segoe UI', sans-serif;
  --mono: 'Atkinson Hyperlegible Mono', 'SF Mono', ui-monospace, Menlo, monospace;

  --shadow-sm: 0 1px 3px rgba(20, 41, 61, 0.08), 0 1px 2px rgba(20, 41, 61, 0.04);
  --shadow-md: 0 4px 14px rgba(20, 41, 61, 0.10);
  --shadow-lg: 0 12px 32px rgba(20, 41, 61, 0.14);
  --shadow-xl: 0 30px 70px rgba(20, 41, 61, 0.20);

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --spring: cubic-bezier(0.34, 1.32, 0.64, 1);
  --page: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(45, 125, 160, 0.45); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(var(--page), 100% - 40px); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(238, 243, 246, 0.78);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border-hair); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink-800); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 22.37%; box-shadow: var(--shadow-sm); }
.brand span b { color: var(--gold-500); font-weight: 800; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--fg-secondary); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--fg-primary); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px;
  font: 600 16px/1 var(--font); border: 0; cursor: pointer;
  transition: background 140ms var(--ease), transform 140ms var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-quiet { background: rgba(45, 125, 160, 0.10); color: var(--blue-600); }
.btn-quiet:hover { background: rgba(45, 125, 160, 0.16); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 15px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; }
.hero::before {
  /* faint kilim texture, whisper-soft per brand rules */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' fill='none' stroke='%2314293D' stroke-opacity='.05' stroke-width='1.5'%3E%3Cpath d='M36 6 66 36 36 66 6 36Z'/%3E%3Cpath d='M36 22 50 36 36 50 22 36Z'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 0% 0%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 50% at 0% 0%, #000, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 600; color: var(--ink-700);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px var(--green-100); }
h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.025em;
  font-weight: 800; color: var(--ink-800);
}
h1 em { font-style: normal; color: var(--gold-500); }
.lede { font-size: 20px; line-height: 1.5; color: var(--fg-secondary); max-width: 34ch; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { margin-top: 16px; font-size: 14px; color: var(--fg-tertiary); }

.hero-art { position: relative; }
.hero-art img {
  width: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 80%, transparent 100%);
}
.hero-art .bubble {
  position: absolute; left: 4%; top: 18%;
  display: flex; gap: 10px; align-items: center;
  padding: 12px 16px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-md);
  font-size: 15px; font-weight: 600; animation: float 6s var(--ease) infinite;
}
.hero-art .bubble small { display: block; font-weight: 400; color: var(--fg-secondary); font-size: 13px; }
.bubble .check { width: 26px; height: 26px; border-radius: 50%; background: var(--green-600); color: #fff; display: grid; place-items: center; }
.bubble .check .icon { width: 15px; height: 15px; stroke-width: 3; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- App window mockup ---------- */
.showcase { position: relative; isolation: isolate; padding: 24px 0 40px; }
.showcase::before {
  /* warm glow under the window; closest-side fades to zero before the box edges, so it never shows a seam */
  content: ""; position: absolute; inset: 40% 0 -160px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(235, 199, 143, 0.30), transparent);
}
.window {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-soft);
}
.titlebar { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--grey-50); border-bottom: 1px solid var(--border-hair); }
.titlebar i { width: 12px; height: 12px; border-radius: 50%; background: var(--grey-200); }
.titlebar i:nth-child(1) { background: #EE6A5F; } .titlebar i:nth-child(2) { background: #F5BF4F; } .titlebar i:nth-child(3) { background: #62C554; }
.titlebar .title { margin: 0 auto; transform: translateX(-26px); font-size: 13px; font-weight: 600; color: var(--fg-secondary); }

.app { display: grid; grid-template-columns: 210px 1fr 1.15fr; min-height: 520px; font-size: 14px; }
.side { background: var(--grey-50); border-right: 1px solid var(--border-hair); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.side .label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-tertiary); padding: 14px 10px 6px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--fg-primary); font-weight: 500; }
.side a:hover { text-decoration: none; background: var(--blue-50); }
.side a .icon { width: 17px; height: 17px; color: var(--fg-secondary); }
.side a.on { background: var(--blue-50); color: var(--blue-600); font-weight: 600; }
.side a.on .icon { color: var(--blue-500); }
.side .count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--fg-tertiary); }
.swatch { width: 9px; height: 9px; border-radius: 3px; margin: 0 4px; }

.pane { padding: 22px 22px 16px; border-right: 1px solid var(--border-hair); }
.pane-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.pane-head h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.pane-head .meta { font-family: var(--mono); font-size: 12px; color: var(--fg-secondary); }
.progress { height: 6px; border-radius: 99px; background: var(--grey-100); margin-bottom: 18px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 58%; background: linear-gradient(90deg, var(--green-500), var(--green-600)); border-radius: inherit; }
.group { font-size: 12px; font-weight: 700; color: var(--fg-secondary); margin: 14px 0 6px; display: flex; justify-content: space-between; }
.task { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border-hair); margin-bottom: 6px; background: #fff; }
.task.running { border-color: var(--blue-100); background: var(--blue-50); }
.task .box { width: 18px; height: 18px; border-radius: 50%; border: 1.75px solid var(--grey-400); flex: none; display: grid; place-items: center; }
.task.done .box { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.task.done .box .icon { width: 11px; height: 11px; stroke-width: 3.5; }
.task.done .t { color: var(--fg-tertiary); text-decoration: line-through; }
.task .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task .tag { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: var(--sand-100); color: var(--gold-600); }
.task .tag.blue { background: var(--blue-50); color: var(--blue-600); }
.task .tag.green { background: var(--green-50); color: var(--green-600); }
.task .time { font-family: var(--mono); font-size: 12px; color: var(--fg-secondary); }
.task.running .time { color: var(--blue-600); font-weight: 600; }
.task .play { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.task .play .icon { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.task .pr { width: 15px; height: 15px; color: var(--fg-secondary); }

.timeline { padding: 22px 22px 16px; position: relative; background: linear-gradient(180deg, #fff, var(--grey-50)); }
.hours { position: relative; margin-top: 4px; }
.hour { height: 52px; border-top: 1px solid var(--border-hair); position: relative; }
.hour span { position: absolute; top: -8px; left: 0; font-family: var(--mono); font-size: 11px; color: var(--fg-tertiary); background: inherit; padding-right: 6px; }
.blocks { position: absolute; inset: 0 0 0 52px; }
.block { position: absolute; left: 0; right: 0; border-radius: 10px; padding: 7px 10px; font-size: 13px; font-weight: 600; overflow: hidden; }
.block small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; opacity: 0.8; }
.block.meet { background: var(--sand-100); color: #7A5320; border-left: 3px solid var(--sand-500); }
.block.work { background: var(--blue-50); color: var(--blue-700); border-left: 3px solid var(--blue-500); }
.block.done { background: var(--green-50); color: var(--green-600); border-left: 3px solid var(--green-500); }
.block.rec { display: flex; align-items: center; gap: 6px; }
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 3px rgba(200, 80, 60, 0.18); }
.now { position: absolute; left: 44px; right: 0; height: 2px; background: var(--clay); }
.now::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--clay); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding: 104px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 10px; }
h2 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; color: var(--ink-800); }
.section-head p { font-size: 19px; color: var(--fg-secondary); margin: 0; }

.warm { background: var(--sand-50); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border-radius: 20px; padding: 26px;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-hair);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md), 0 0 0 1px var(--border-hair); }
.card h3 { margin: 18px 0 8px; font-size: 20px; font-weight: 700; }
.card p { margin: 0; color: var(--fg-secondary); font-size: 16px; }
.chip-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.chip-icon .icon { width: 22px; height: 22px; }
.ci-blue { background: var(--blue-50); color: var(--blue-600); }
.ci-sand { background: var(--sand-100); color: var(--gold-600); }
.ci-green { background: var(--green-50); color: var(--green-600); }
.ci-ink { background: var(--grey-100); color: var(--ink-800); }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.flip > :first-child { order: 2; }
.split h3 { margin: 0 0 12px; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; color: var(--ink-800); }
.split p { margin: 0 0 18px; color: var(--fg-secondary); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.ticks .icon { width: 20px; height: 20px; color: var(--green-600); margin-top: 2px; }

.panel { background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-hair); font-size: 14px; }
.panel-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 14px; }
.panel-title .icon { width: 18px; height: 18px; color: var(--fg-secondary); }
.panel-title .pill { margin-left: auto; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--blue-50); color: var(--blue-600); }

.replay-bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; margin: 6px 0 10px; }
.replay-bar span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--fg-secondary); margin-bottom: 16px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.gap-note { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--sand-50); border: 1px dashed var(--sand-300); }
.gap-note .t { flex: 1; }
.gap-note small { display: block; color: var(--fg-secondary); }
.draft { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--grey-50); font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--ink-700); white-space: pre-wrap; }

.transcript { display: grid; gap: 10px; }
.line { display: flex; gap: 10px; }
.who { flex: none; width: 46px; font-family: var(--mono); font-size: 11px; font-weight: 700; padding-top: 3px; }
.who.me { color: var(--blue-600); } .who.them { color: var(--gold-600); }
.line p { margin: 0; font-size: 14px; color: var(--fg-primary); }
.actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-hair); }
.actions .group { margin-top: 0; }

.term {
  background: var(--ink-950); color: #D5E3EC; border-radius: 16px; padding: 18px 20px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7; box-shadow: var(--shadow-lg);
  white-space: pre; overflow-x: auto;
}
.term .c { color: #6E8BA3; } .term .g { color: #9DC183; } .term .y { color: var(--sand-300); }

/* Principles strip */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.principle .icon { width: 26px; height: 26px; color: var(--blue-500); }
.principle h4 { margin: 12px 0 6px; font-size: 18px; }
.principle p { margin: 0; color: var(--fg-secondary); font-size: 15px; }

/* Download */
.download {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, #E4EEF4 0%, var(--sand-50) 100%);
  border-radius: 28px; padding: 72px 32px;
  box-shadow: 0 0 0 1px var(--border-hair);
}
.download img.icon-lg { width: 108px; height: 108px; margin: 0 auto 22px; border-radius: 22.37%; box-shadow: var(--shadow-lg); }
.download h2 { margin-bottom: 10px; }
.download p { margin: 0 auto 28px; max-width: 46ch; color: var(--fg-secondary); font-size: 18px; }
.download .cta-row { justify-content: center; }
.platforms { margin-top: 26px; font-size: 14px; color: var(--fg-tertiary); }

footer { padding: 48px 0 56px; color: var(--fg-secondary); font-size: 14px; }
footer .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
footer img { width: 40px; height: 40px; }
footer nav { margin-left: auto; display: flex; gap: 20px; }
footer nav a { color: var(--fg-secondary); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .app { grid-template-columns: 1fr 1fr; }
  .side { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 32px; }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split.flip > :first-child { order: 0; }
  .hero-art .bubble { display: none; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .timeline { display: none; }
  .pane { border-right: 0; }
  .features, .principles { grid-template-columns: minmax(0, 1fr); }
  .draft { white-space: pre-wrap; }
  .hero-art { max-width: 460px; margin-inline: auto; }
  .section { padding: 72px 0; }
  .download { padding: 56px 20px; }
  footer nav { margin-left: 0; }
}
