/* Nisshi — clean, light, minimal (Ollama-inspired). Mostly monochrome, with a
   single confident accent used sparingly and one dark block for rhythm. */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --ink: #0d0f13;
  --muted: #5c6470;
  --faint: #8a919c;
  --line: rgba(13, 15, 19, 0.10);
  --line-2: rgba(13, 15, 19, 0.06);
  --accent: #0d0f13;
  --accent-soft: rgba(13, 15, 19, 0.055);
  --dark: #0c0e13;
  --maxw: 1080px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 17px; }
a { color: var(--ink); text-decoration: none; }
a:hover { opacity: 0.75; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Footer links: surface Support (the feedback / suggestion box) and hide the
   Privacy link. Both pages stay live — Privacy is still reachable via its
   direct /privacy URL (which the App Store listing points to). */
.footer-links a[href="/privacy.html"] { display: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255,255,255,0.8); border-bottom: 1px solid var(--line-2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; color: var(--ink); }
.mark { width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); display: grid; place-items: center; font-size: 17px; font-weight: 600; }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 14.5px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); opacity: 1; }

/* Hero — clean, flat, no wash */
.hero { position: relative; text-align: center; padding: 108px 0 0; background: var(--bg); }
.eyebrow { display: inline-block; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 7px 15px; border-radius: 999px; margin-bottom: 26px; font-weight: 600; }
.hero h1 { font-size: 66px; line-height: 1.02; margin: 0 auto 20px; max-width: 15ch; font-weight: 660; letter-spacing: -0.04em; }
.hero p.sub { font-size: 21px; color: var(--muted); max-width: 46ch; margin: 0 auto 34px; }
.cta-row { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.badge-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--dark); color: #fff; font-weight: 600; padding: 14px 24px; border-radius: 12px; font-size: 16px; }
.badge-btn:hover { opacity: 0.9; }
.ghost-btn { color: var(--muted); font-size: 15px; padding: 14px 8px; }
.ghost-btn:hover { color: var(--accent); opacity: 1; }
.badge-note { display: block; margin-top: 16px; font-size: 13px; color: var(--faint); }

/* macOS window mockup — clean, framed, even soft shadow (no directional bleed) */
.mock { position: relative; margin: 72px auto -90px; max-width: 940px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 1px 1px rgba(13,15,19,0.04), 0 10px 34px rgba(13,15,19,0.09);
  background: #fff; text-align: left; z-index: 2; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #f6f7f8; border-bottom: 1px solid var(--line-2); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.mock-bar .title { margin-left: 8px; font-size: 12px; color: var(--faint); font-weight: 500; }
.mock-body { display: grid; grid-template-columns: 196px 1fr; min-height: 360px; }
.mock-side { background: var(--bg-soft); border-right: 1px solid var(--line-2); padding: 16px 10px; font-size: 13px; color: var(--muted); }
.mock-side .grp { text-transform: uppercase; font-size: 10px; letter-spacing: 0.06em; color: var(--faint); margin: 14px 8px 6px; }
.mock-side .grp:first-child { margin-top: 4px; }
.mock-side .row { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 7px; }
.mock-side .row svg { width: 15px; height: 15px; opacity: 0.55; flex: none; }
.mock-side .row[data-view] { cursor: pointer; }
.mock-side .row[data-view]:hover { background: rgba(13, 15, 19, 0.045); color: var(--ink); }
.mock-side .row.on, .mock-side .row.on:hover { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(13,15,19,0.06); }
.mock-side .row.on svg { opacity: 1; color: var(--accent); }
.mock-pane { display: none; }
.mock-pane.on { display: block; }
.mock-main { padding: 26px 32px; }
.mock-main h4 { margin: 0 0 4px; font-size: 23px; letter-spacing: -0.02em; }
.mock-main .date { font-size: 13px; color: var(--faint); margin: 0 0 20px; }
.mock-card { border: 1px solid var(--line-2); border-radius: 12px; padding: 20px 22px; background: #fff;
  box-shadow: 0 1px 2px rgba(13,15,19,0.03); }
.mock-card + .mock-card { margin-top: 12px; }
.mock-card .cap { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); margin-bottom: 10px; }
.mock-card p { margin: 0 0 9px; font-size: 14px; color: #39414c; line-height: 1.5; }
.mock-card p:last-child { margin: 0; }
.mock-card.star-card p { margin: 0 0 7px; }
.mock-card.star-card strong { color: var(--ink); font-weight: 620; }
.mock-card .task { display: flex; align-items: flex-start; gap: 9px; }
.mock-card .task::before { content: ""; width: 13px; height: 13px; border: 1.5px solid var(--faint);
  border-radius: 50%; margin-top: 3px; flex: none; box-sizing: border-box; }
.mock-card .task.done { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(13,15,19,0.22); }
.mock-card .task.done::before { background: var(--ink); border-color: var(--ink); }

/* Sections */
section { padding: 84px 0; }
section[id] { scroll-margin-top: 72px; }  /* keep anchored headings clear of the sticky nav */
.hero + section { padding-top: 160px; }  /* clear the overlapping mockup */
.section-head { text-align: center; max-width: 46ch; margin: 0 auto 44px; }
.section-head h2 { font-size: 38px; letter-spacing: -0.03em; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* Statement band */
.band { text-align: center; }
.band h2 { font-size: 46px; letter-spacing: -0.035em; margin: 0 auto 16px; max-width: 18ch; line-height: 1.07; }
.band p { color: var(--muted); font-size: 19px; max-width: 54ch; margin: 0 auto; line-height: 1.6; }
.band.tight { padding: 64px 0; }

/* How it works — three quiet numbered steps */
.how { padding: 24px 0 48px; }
.how .section-head { max-width: none; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; max-width: 980px; margin: 0 auto; }
.step .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 13.5px; font-weight: 650; color: var(--ink); margin-bottom: 16px; }
.step h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Feature cards — clean, monochrome with accent icons */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 16px; padding: 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(13,15,19,0.08); }
.feature-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.feature .chip { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent); }
.feature h3 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Privacy strip — the one dark block, for rhythm + pop */
.privacy-strip { background: var(--dark); color: #fff; text-align: center; }
.privacy-strip h2 { font-size: 34px; margin: 0 0 14px; letter-spacing: -0.03em; }
.privacy-strip > .wrap > p { color: rgba(255,255,255,0.72); max-width: 54ch; margin: 0 auto; }
.privacy-points { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.privacy-points div { max-width: 220px; padding: 24px; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; text-align: left; }
.privacy-points strong { display: block; font-size: 16px; margin-bottom: 6px; }
.privacy-points span { font-size: 14px; color: rgba(255,255,255,0.6); }

/* FAQ — quiet, single column */
.faq { padding: 56px 0 56px; }
.faq .section-head { margin-bottom: 26px; }
.faq .section-head h2 { font-size: 30px; }
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-list details { border-top: 1px solid var(--line-2); padding: 4px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line-2); }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 16px 0; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 20px; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; max-width: 60ch; }
.faq-list details a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }

/* Closing */
.closing { text-align: center; }
.closing h2 { font-size: 42px; letter-spacing: -0.03em; margin: 0 0 26px; }

/* Content pages */
.doc { max-width: 720px; margin: 0 auto; padding: 80px 24px 100px; }
.doc h1 { font-size: 42px; letter-spacing: -0.03em; margin: 0 0 8px; line-height: 1.1; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: 23px; margin: 44px 0 12px; letter-spacing: -0.01em; }
.doc h3 { font-size: 17.5px; margin: 30px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #333a45; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.doc a:hover { text-decoration-color: var(--ink); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 14.5px; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: center; }
.doc th:first-child, .doc td:first-child { text-align: left; color: #333a45; padding-left: 0; }
.doc thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); font-weight: 650; }
.doc tbody td:not(:first-child) { font-weight: 550; }

/* Copyable template block inside guides */
.doc .tpl { background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 18px 20px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px;
  line-height: 1.65; color: #39414c; white-space: pre-wrap; margin: 16px 0; }

/* Support page — composed + centered, not the legal-doc column */
.support { max-width: 640px; margin: 0 auto; padding: 84px 24px 104px; }
.support-head { text-align: center; margin-bottom: 34px; }
.support-head h1 { font-size: 44px; letter-spacing: -0.03em; margin: 0 0 14px; line-height: 1.08; }
.support-head p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 auto; max-width: 46ch; }
.support-faq { margin-top: 60px; }
.support-faq h2 { text-align: center; font-size: 28px; letter-spacing: -0.02em; margin: 0 0 22px; }

/* Feedback form — a real card that lifts off the page */
.feedback-form { display: grid; gap: 20px; margin: 0; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px;
  box-shadow: 0 1px 2px rgba(13,15,19,0.04), 0 14px 34px rgba(13,15,19,0.07); }
.ff-row { display: grid; gap: 13px; }
.ff-row > label, .ff-row > .ff-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ff-row .ff-opt { font-weight: 400; color: var(--faint); }
.feedback-form select,
.feedback-form textarea,
.feedback-form input[type="email"] {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.feedback-form textarea { resize: vertical; line-height: 1.5; min-height: 120px; }
.feedback-form select:focus,
.feedback-form textarea:focus,
.feedback-form input[type="email"]:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft);
}
.ff-radios { display: flex; gap: 9px; flex-wrap: wrap; }
.ff-radio { display: inline-flex; align-items: center; font-size: 14.5px; color: var(--ink); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.ff-radio:hover { border-color: var(--faint); }
.ff-radio input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.ff-radio:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.feedback-form .ff-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ff-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#ff-submit { background: var(--dark); color: #fff; font: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 24px; border: none; border-radius: 12px; cursor: pointer; transition: opacity 0.15s ease; }
#ff-submit:hover { opacity: 0.9; }
#ff-submit:disabled { opacity: 0.5; cursor: default; }
.ff-status { font-size: 14px; color: var(--muted); }
.ff-status.ok { color: #1a7f4b; }
.ff-status.err { color: #c0392b; }

/* Footer */
footer { padding: 0 0 44px; color: var(--faint); font-size: 14px; }
/* Top separator sits on the content-width wrap (not the full-bleed footer) so
   it lines up with the other footer rule instead of running edge to edge. */
footer > .wrap:first-child { border-top: 1px solid var(--line-2); padding-top: 26px; }
.footer-guides { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; align-items: baseline; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line-2); }
.footer-made { color: var(--faint); }
.footer-made .heart { color: var(--muted); }
.footer-guides a { color: var(--muted); font-size: 13.5px; }
.footer-guides a:hover { color: var(--ink); opacity: 1; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--faint); }
.footer-links a:hover { color: var(--ink); opacity: 1; }

@media (max-width: 760px) {
  .hero { padding-top: 92px; }
  .hero h1 { font-size: 40px; }
  .band h2 { font-size: 31px; }
  .section-head h2 { font-size: 28px; }
  .faq .section-head h2 { font-size: 26px; }
  .privacy-strip h2 { font-size: 28px; }
  .closing h2 { font-size: 31px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .features { grid-template-columns: 1fr; }
  .doc table { display: block; overflow-x: auto; white-space: nowrap; }
  .nav-links a { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}
