/* Nagomi — nagomi.day
 *
 * One committed look: deep water, high contrast. Deliberately NOT a light/dark pair.
 * docs/DESIGN.md §2(b) argues the brand should read as an instrument rather than a spa,
 * and §2(a) warns that the pale blue-teal wash is the wellness category's house style.
 * A single dark treatment matching the app icon says both things at once.
 *
 * Colours come from docs/DESIGN.md §3. The accent is the design system's DARK-mode accent
 * (#7FC7D9), because this page is always dark.
 */

:root {
  --bg: #0a1a22;
  --bg-raised: #11262f;
  --bg-sunken: #071219;
  --border: #1e3a46;
  --text: #e6eff3;
  --text-dim: #9cb2bc;
  --accent: #7fc7d9;
  --accent-dim: #3c6e7e;
  --ok: #5fcf9b;

  --measure: 34rem;
  --gap: clamp(1rem, 4vw, 2rem);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.0625rem) / 1.65 -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

/* Keyboard users must be able to see where they are; the default ring is invisible on
   a background this dark in some browsers. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
}

/* ---------- layout ---------- */

.wrap {
  width: min(100% - 2 * var(--gap), 62rem);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2 * var(--gap), var(--measure));
  margin-inline: auto;
}

section {
  padding-block: clamp(3rem, 9vw, 5.5rem);
}

section + section {
  border-top: 1px solid var(--border);
}

/* ---------- header ---------- */

.site-head {
  padding-block: 1.5rem;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mark {
  width: 32px;
  height: 32px;
  border-radius: 22.4%;
  display: block;
}

.wordmark {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.site-head nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.site-head nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.site-head nav a:hover {
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 8vw, 5rem) clamp(3rem, 9vw, 5rem);
}

.hero h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem);
  font-weight: 600;
  max-width: 18ch;
}

.hero .lede {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-dim);
  max-width: 46ch;
}

/* ---------- call to action ---------- */

.cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  background: var(--accent);
  color: #06161d;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn:hover {
  filter: brightness(1.08);
}

/* Until the app is on the App Store there is nothing to link to. A disabled-looking,
   non-interactive element is honest; a live-looking button that goes nowhere is not. */
.btn[aria-disabled="true"] {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
  cursor: default;
  pointer-events: none;
}

.cta small {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- the day band ---------- */

.band-compare {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.band-row h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.band {
  display: flex;
  height: 2.75rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
}

.band span {
  display: block;
}

.band .blocked {
  background: var(--accent);
}

.band .free {
  background: transparent;
}

/* Segment widths live here rather than in style="" attributes so the site can ship a
   Content-Security-Policy without 'unsafe-inline' for styles. On a site whose whole pitch
   is that it collects nothing, the strict header is worth the slightly odd-looking rules.
   Each band is 24 flex units = 24 hours. */
.band--downtime span:nth-child(1) { flex: 9 }    /* 00:00–09:00 free   */
.band--downtime span:nth-child(2) { flex: 9 }    /* 09:00–18:00 BLOCK  */
.band--downtime span:nth-child(3) { flex: 6 }    /* 18:00–24:00 free   */

.band--nagomi span:nth-child(1) { flex: 0.75 }   /* 00:00–00:45 BLOCK, yesterday's late night */
.band--nagomi span:nth-child(2) { flex: 8.25 }   /* 00:45–09:00 free   */
.band--nagomi span:nth-child(3) { flex: 3 }      /* 09:00–12:00 BLOCK  */
.band--nagomi span:nth-child(4) { flex: 1 }      /* 12:00–13:00 free, lunch */
.band--nagomi span:nth-child(5) { flex: 5 }      /* 13:00–18:00 BLOCK  */
.band--nagomi span:nth-child(6) { flex: 5.5 }    /* 18:00–23:30 free   */
.band--nagomi span:nth-child(7) { flex: 0.5 }    /* 23:30–24:00 BLOCK  */

.band-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.band-note {
  margin-top: 1.75rem;
  color: var(--text-dim);
  max-width: 52ch;
}

/* ---------- feature list ---------- */

.features {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2.5rem;
}

.feature h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.96rem;
}

/* ---------- Today sample ----------
   Mirrors TodayView rather than inventing a UI: the status word, the period rows with their
   own state labels, and the "N of M schedules verified registered" footer. If those strings
   change in the app, change them here too. */

.today {
  margin: 2rem 0 0;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.4rem 1.1rem;
  max-width: 30rem;
}

.today-status {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ok);
}

.today-head {
  margin-top: 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.today-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.p-name {
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.p-name em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  margin-top: 0.1rem;
}

.p-state {
  font-size: 0.82rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.p-state.ok {
  color: var(--ok);
}

.today figcaption {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- pricing ---------- */

.tiers {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 2.5rem;
}

.tier {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--bg-raised);
}

.tier h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

.tier > p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0.4rem 0 0;
}

.tier ul {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.tier li {
  padding-left: 1.4rem;
  position: relative;
  margin-top: 0.55rem;
}

.tier li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-dim);
}

/* ---------- privacy callout ---------- */

.callout {
  border: 1px solid var(--accent-dim);
  border-radius: 12px;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--bg-raised);
}

.callout h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 600;
}

.callout p {
  color: var(--text-dim);
  margin-bottom: 0;
}

.callout p + p {
  margin-top: 0.9rem;
}

/* ---------- section headings ---------- */

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7rem;
}

section h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 600;
  max-width: 22ch;
}

section h2 + p {
  margin-top: 1rem;
  color: var(--text-dim);
  max-width: 52ch;
}

/* ---------- long-form legal pages ---------- */

.doc {
  padding-block: clamp(2.5rem, 7vw, 4rem);
}

.doc h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 600;
}

.doc .updated {
  margin-top: 0.6rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.doc h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2.75rem;
}

.doc h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.75rem;
}

.doc p,
.doc li {
  color: var(--text-dim);
}

.doc p {
  margin: 0.9rem 0 0;
}

.doc ul {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
}

.doc li {
  margin-top: 0.45rem;
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.doc .summary {
  border-left: 2px solid var(--accent-dim);
  padding-left: 1.1rem;
  margin-top: 2rem;
}

.doc .summary p {
  color: var(--text);
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem 3.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
}

.site-foot nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.site-foot a {
  color: var(--text-dim);
}

.site-foot a:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
