/* Patterns — colours taken from the watercolour ensō: paper, sage, rose, peach and slate ink. */

:root {
  --paper: #f7f2e9;
  --paper-deep: #efe8db;
  --surface: #fffdf8;
  --ink: #25302e;
  --ink-soft: #55615d;
  --line: #e2d9c9;
  --sage: #8fa593;
  --sage-deep: #4d6a5d;
  --rose: #e0919f;
  --rose-soft: #f6dde0;
  --peach: #f2cdb0;
  --slate: #3b4a4a;
  --accent: var(--sage-deep);
  --accent-ink: #fffdf8;
  --shadow: 0 1px 2px rgba(37, 48, 46, .05), 0 8px 30px rgba(37, 48, 46, .07);
  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12181a;
    --paper-deep: #182023;
    --surface: #1c2427;
    --ink: #ece6dc;
    --ink-soft: #a9b1ac;
    --line: #2c3639;
    --sage: #9db5a2;
    --sage-deep: #a9c4b2;
    --rose: #eaa6b2;
    --rose-soft: #3a2a2e;
    --peach: #e8c4a6;
    --slate: #c7d2cf;
    --accent: #a9c4b2;
    --accent-ink: #12181a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 30px rgba(0, 0, 0, .25);
  }
}

:root[data-theme="dark"] {
  --paper: #12181a;
  --paper-deep: #182023;
  --surface: #1c2427;
  --ink: #ece6dc;
  --ink-soft: #a9b1ac;
  --line: #2c3639;
  --sage: #9db5a2;
  --sage-deep: #a9c4b2;
  --rose: #eaa6b2;
  --rose-soft: #3a2a2e;
  --peach: #e8c4a6;
  --slate: #c7d2cf;
  --accent: #a9c4b2;
  --accent-ink: #12181a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 30px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .75rem;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--accent); }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { color: var(--accent-ink); }
.button-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; }
.brand img { border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav .nav-cta { color: var(--accent-ink); background: var(--accent); padding: .45em 1em; border-radius: 999px; font-weight: 600; }
@media (max-width: 719px) {
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .nav { width: 100%; justify-content: space-between; gap: 6px 12px; font-size: .9rem; }
  .nav a[href$="#features"], .nav .nav-privacy { display: none; }
}

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.05fr .95fr; } .hero { padding: 88px 0 64px; } }
.hero h1 em { font-style: italic; color: var(--sage-deep); }
.hero .lead { margin-bottom: 1.6em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 1.2em; font-size: .9rem; color: var(--ink-soft); }
.hero-art { position: relative; }
.hero-art .enso {
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-art .enso { opacity: .92; } }

/* Insight card floating on the art */
.insight-card {
  position: relative;
  margin: -48px 16px 0 auto;
  max-width: 330px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  font-size: .95rem;
}
.insight-card .label { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.insight-card p { margin: .35em 0 0; }
.insight-card .chips { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--paper-deep); color: var(--ink); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--sage)); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-deep); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* Steps */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--dot);
  color: #25302e;
  font-family: var(--serif);
  font-weight: 600;
  margin-bottom: 14px;
}
.step p { color: var(--ink-soft); margin: 0; }

/* Calendar mock */
.calendar-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  max-width: 380px;
}
.calendar-mock .month { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 10px; }
.calendar-mock .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: .78rem; }
.calendar-mock .dow { color: var(--ink-soft); font-weight: 600; font-size: .7rem; }
.calendar-mock .day { padding: 6px 0 4px; border-radius: 10px; min-height: 40px; }
.calendar-mock .day.today { background: var(--paper-deep); font-weight: 600; }
.calendar-mock .dots { display: flex; justify-content: center; gap: 2px; margin-top: 3px; min-height: 6px; }
.calendar-mock .dots i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.d-sage { background: #7f9c86; } .d-rose { background: #e0919f; } .d-peach { background: #e7b48c; } .d-slate { background: #4f6470; }

/* Feature split */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }

.features { display: grid; gap: 18px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature h3::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--dot, var(--sage)); }
.feature p { color: var(--ink-soft); margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: .45em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--rose-soft);
  box-shadow: inset 0 0 0 5px var(--rose);
}

/* Privacy band */
.privacy-band { background: var(--slate); color: var(--paper); }
:root[data-theme="dark"] .privacy-band { background: #1f2a2c; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .privacy-band { background: #1f2a2c; color: var(--ink); } }
.privacy-band .section-head p, .privacy-band .feature p { color: inherit; opacity: .8; }
.privacy-band .feature { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.privacy-band a { color: var(--peach); }

/* Use cases */
.use-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .use-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .use-grid { grid-template-columns: repeat(3, 1fr); } }
.use-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.use-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.use-card h3 { margin: 12px 0 .35em; }
.use-card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.use-dot {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--dot, var(--sage));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--dot, var(--sage)) 25%, transparent);
  vertical-align: middle;
}
h1 .use-dot { margin-right: 16px; position: relative; top: -4px; }
.center { text-align: center; margin-top: 32px; }

/* Pricing */
.plans { display: grid; gap: 18px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.featured { border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage); }
.plan .price { font-family: var(--serif); font-size: 2rem; margin: .2em 0; }
.plan .price small { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); }
.plan p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.plan .tag { display: inline-block; font-size: .75rem; font-weight: 600; background: var(--rose-soft); color: var(--ink); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.fine { font-size: .85rem; color: var(--ink-soft); margin-top: 20px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.4rem; line-height: 1; color: var(--ink-soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8em 0 0; color: var(--ink-soft); }

/* Download */
.download { padding: 80px 0; text-align: center; }
.download-inner { max-width: 640px; }
.download-enso { margin: 0 auto 20px; border-radius: 22px; box-shadow: var(--shadow); }
.download p { color: var(--ink-soft); font-size: 1.1rem; }

/* Pages & posts */
.prose-page { padding-top: 56px; padding-bottom: 40px; }
.page-head { max-width: 760px; margin-bottom: 32px; }
.prose { max-width: 700px; font-size: 1.07rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--rose);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}
.prose code { background: var(--paper-deep); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .97rem; color: var(--ink-soft); }
.post-foot { max-width: 700px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

.setup-card { max-width: 700px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 36px; }
.setup-card h2 { font-size: 1.15rem; margin-bottom: .8em; }
.tracker-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tracker-list li { display: grid; gap: 2px; }
@media (min-width: 600px) { .tracker-list li { grid-template-columns: 200px 1fr; gap: 16px; } }
.tracker-name { font-weight: 600; display: flex; align-items: center; gap: 12px; }
.tracker-name .use-dot { width: 10px; height: 10px; box-shadow: none; }
.tracker-details { color: var(--ink-soft); font-size: .95rem; }

.more-uses { margin-top: 64px; }
.more-uses h2 { font-size: 1.5rem; }

/* Blog list */
.post-list { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.post-list li { padding: 26px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 1.5rem; margin: .2em 0 .3em; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--accent); }
.post-list time { font-size: .85rem; color: var(--ink-soft); }
.post-list p { color: var(--ink-soft); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; background: var(--paper-deep); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { border-radius: 10px; }
.footer-brand p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-note { margin-top: 28px; font-size: .85rem; color: var(--ink-soft); }
.footer-note p { margin: 0 0 .4em; max-width: 52em; }

/* Feedback */
.feedback-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .feedback-layout { grid-template-columns: 1.4fr 1fr; gap: 48px; } }
.feedback-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 24px; }
@media (min-width: 720px) { .feedback-form { padding: 32px; } }
.feedback-form .eyebrow { margin: 0 0 -16px; }
.feedback-email { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2rem); overflow-wrap: anywhere; }
.feedback-email a { text-decoration-thickness: 1px; }
.feedback-kind { border-top: 1px solid var(--line); padding-top: 20px; scroll-margin-top: 90px; }
.feedback-kind h2 { font-size: 1.25rem; }
.feedback-kind p, .feedback-kind ul { color: var(--ink-soft); margin: 0 0 .6em; }
.feedback-kind ul { padding-left: 1.2em; }
.feedback-kind:target h2 { color: var(--sage-deep); }
.feedback-aside { display: grid; gap: 16px; }
.feedback-aside h2 { font-size: 1.1rem; color: var(--ink); margin-bottom: .4em; }
.feedback-aside p { margin: 0; }
