/* Frosted pastel light study — background feel only, no reference copy. */
:root {
  --frost-ink: #27332b;
  --frost-muted: #5d6a5f;
  --frost-faint: #879487;
  --frost-green: #b9dfc2;
  --frost-pink: #ffc9d2;
  --frost-peach: #ffe6d8;
  --frost-paper: #f5f3eb;
}

.cin-hero {
  background:
    radial-gradient(circle at 10% 16%, rgba(185, 223, 194, 0.94), transparent 37%),
    radial-gradient(circle at 88% 12%, rgba(255, 201, 210, 0.9), transparent 40%),
    radial-gradient(circle at 72% 82%, rgba(255, 230, 216, 0.94), transparent 43%),
    linear-gradient(135deg, #f0f7ed 0%, #fdf4f1 50%, #f8f4ed 100%);
}

.cin-hero::before,
.cin-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  display: block;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  filter: blur(92px);
  pointer-events: none;
}

.cin-hero::before {
  top: -12%;
  left: -14%;
  background: rgba(169, 219, 180, 0.72);
}

.cin-hero::after {
  right: -14%;
  bottom: -24%;
  background: rgba(255, 183, 198, 0.58);
}

.cin-hero-bg { display: none; }

.cin-hero-shade {
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 58%, rgba(245, 243, 235, 0.84) 93%, var(--cin-paper) 100%);
}

.site-nav.nav-overlay {
  z-index: 4;
  color: var(--frost-ink);
}

.nav-overlay .nav-seal {
  border-color: rgba(52, 73, 58, 0.4);
  color: #5f7b64;
}

.nav-overlay .nav-brand-text strong { color: var(--frost-ink); }
.nav-overlay .nav-brand-text small { color: #7d8b7d; }

.nav-overlay .nav-center a { color: #5e6b60; opacity: 1; }
.nav-overlay .nav-center a small { color: #8b978b; }
.nav-overlay .nav-center a.is-active {
  border-color: rgba(74, 100, 79, 0.3);
  background: rgba(255, 255, 255, 0.38);
  color: #2b3b30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-overlay .nav-text { color: #5f6c61; }
.nav-overlay .nav-cta {
  border-color: rgba(75, 98, 78, 0.3);
  background: rgba(255, 255, 255, 0.36);
  color: #2c3a30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cin-hero-content {
  z-index: 3;
  width: min(790px, calc(100% - 44px));
  margin-top: 0;
  padding: 48px 54px 46px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 34px 90px rgba(69, 91, 75, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(24px) saturate(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.08);
}

.cin-kicker { color: #627d64; }
.cin-hero h1 { color: var(--frost-ink); text-shadow: none; }
.cin-hero-content > p { color: #536257; }
.cin-cta { margin-top: 27px; }

.cin-btn {
  border-color: rgba(65, 88, 68, 0.28);
  background: rgba(255, 255, 255, 0.34);
  color: #2b3b30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cin-btn:hover { background: #33483a; color: #f8fbf6; }

.cin-scroll { color: #687a6b; }
.cin-scroll i { color: #687a6b; }

@media (max-width: 900px) {
  .cin-hero-content {
    width: calc(100% - 32px);
    padding: 30px 22px 28px;
    border-radius: 22px;
    margin-top: 0;
  }
  .cin-hero h1 { color: var(--frost-ink); }
  .cin-hero-content > p { color: #536257; }
  .nav-overlay .nav-center { display: none; }
}

@media (max-width: 420px) {
  .cin-hero-content { padding: 24px 18px 23px; }
  .cin-hero h1 { font-size: 44px; }
  .cin-cta { gap: 8px; }
  .cin-btn { min-width: 0; flex: 1; padding: 0 10px; }
}

/* ── full frosted-light interface ───────────────────────── */
:root {
  --frost-paper: #f2f7f0;
  --frost-ink: #26342b;
  --frost-muted: #5d6d61;
  --frost-faint: #849386;
  --frost-line: rgba(56, 83, 66, 0.16);
  --frost-line-soft: rgba(56, 83, 66, 0.1);
  --frost-rose: #b26f80;
  --frost-green: #5f7f68;
  --frost-deep: #2d4536;
  --cin-paper: var(--frost-paper);
  --cin-ink: var(--frost-ink);
  --cin-muted: var(--frost-muted);
  --cin-faint: var(--frost-faint);
  --cin-line: var(--frost-line);
  --cin-line-strong: rgba(56, 83, 66, 0.24);
  --cin-gold: var(--frost-rose);
  --cin-gold-light: #d7b4a6;
}

html, body {
  background: #f2f7f0;
}

body {
  background:
    radial-gradient(circle at 7% 8%, rgba(186, 224, 196, 0.95), transparent 34%),
    radial-gradient(circle at 94% 14%, rgba(255, 201, 211, 0.86), transparent 37%),
    radial-gradient(circle at 73% 88%, rgba(255, 231, 216, 0.9), transparent 43%),
    linear-gradient(135deg, #eff7ed 0%, #fbf2ef 54%, #f7f3eb 100%);
  background-attachment: fixed;
  color: var(--frost-ink);
}

body::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -1;
  display: block;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 25%, rgba(164, 216, 178, 0.5), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(255, 177, 194, 0.38), transparent 34%),
    radial-gradient(circle at 62% 78%, rgba(255, 221, 201, 0.46), transparent 36%);
  filter: blur(86px);
  opacity: 0.8;
}

.cin-hero {
  min-height: 720px;
  background: transparent;
}
.cin-hero::before,
.cin-hero::after,
.cin-hero-shot,
.cin-hero-bg,
.cin-hero-shade {
  display: none !important;
}

.cin-hero-content {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 30px 90px rgba(66, 92, 74, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cin-about,
.cin-features,
.cin-people {
  margin-top: 14px;
  padding: 42px 44px 38px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 20px 60px rgba(68, 93, 76, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.06);
}

.cin-about { border-bottom: 1px solid rgba(255, 255, 255, 0.58); }
.cin-about h2 { color: var(--frost-ink); }
.cin-about p { color: var(--frost-muted); }
.cin-features { padding-top: 0; padding-bottom: 0; }
.cin-feature { padding: 26px 0; border-bottom-color: rgba(56, 83, 66, 0.12); }
.cin-feature:hover { background: rgba(255, 255, 255, 0.22); }
.cin-feature h3 { color: var(--frost-ink); }
.cin-feature p { color: var(--frost-muted); }
.cin-link { color: var(--frost-rose); }
.cin-section-head { border-bottom-color: rgba(56, 83, 66, 0.13); }
.cin-note { color: var(--frost-faint); }
.cin-person h3 { color: var(--frost-ink); }
.cin-person p { color: var(--frost-muted); }
.cin-person-meta { color: var(--frost-faint); }
.cin-person-img {
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(59, 83, 66, 0.1);
}
.cin-person-img img { filter: saturate(0.72) brightness(1.04); }
.cin-foot-note {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--frost-faint);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* nav / footer / bottom bar */
.site-nav.nav-paper {
  color: var(--frost-ink);
  background: rgba(250, 253, 247, 0.58);
  border-bottom-color: rgba(56, 83, 66, 0.12);
  backdrop-filter: blur(20px) saturate(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(1.05);
}
.site-nav.nav-paper .nav-seal { border-color: rgba(56, 83, 66, 0.35); color: var(--frost-green); }
.site-nav.nav-paper .nav-center a.is-active {
  border-color: rgba(56, 83, 66, 0.24);
  background: rgba(255, 255, 255, 0.4);
  color: var(--frost-ink);
}
.site-nav.nav-paper .nav-cta {
  border-color: rgba(56, 83, 66, 0.24);
  background: rgba(255, 255, 255, 0.36);
  color: var(--frost-ink);
}
.site-nav.nav-paper .nav-text { color: var(--frost-muted); }
.home-footer {
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--frost-faint);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.bottom-nav {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(249, 253, 247, 0.72);
  box-shadow: 0 12px 32px rgba(59, 83, 66, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.bottom-nav a { color: var(--frost-faint); }
.bottom-nav a.is-active { color: var(--frost-rose); }
.bottom-nav a.is-active .icon { color: var(--frost-rose); }

/* inner page shells */
.page-head {
  padding-top: 42px;
  color: var(--frost-ink);
  border-bottom-color: rgba(56, 83, 66, 0.13);
}
.page-head h1,
.blind-title,
.life-name,
.script-headline,
.legal-title,
.section-title {
  color: var(--frost-ink);
}
.page-lede,
.blind-lede,
.life-one-line,
.script-prologue {
  color: var(--frost-muted);
}
.back-link { color: var(--frost-rose); }

.blind-setup,
.form-card,
.life-hero,
.life-body .section,
.shell-wide > .section,
.legal-section {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 18px 50px rgba(65, 90, 73, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

.blind-setup {
  border-radius: 22px;
  padding: 36px 40px 30px;
}
.blind-mark { border-color: rgba(56, 83, 66, 0.4); color: var(--frost-rose); }
.blind-hint, .disclaimer { color: var(--frost-faint); }
.blind-notes, .history { border-top-color: rgba(56, 83, 66, 0.12); }
.note-row, .history-row { border-color: rgba(56, 83, 66, 0.1); }
.note-k { color: var(--frost-faint); }
.note-v, .history-name { color: var(--frost-ink); }
.history-meta, .history-emotion { color: var(--frost-faint); }

.life-hero {
  border-radius: 22px;
  margin-top: 20px;
  padding: 34px 38px 28px;
}
.life-hero-art { display: none; }
.life-meta { color: var(--frost-faint); }
.life-meta span + span { border-left-color: rgba(56, 83, 66, 0.18); }
.fact-row { border-top-color: rgba(56, 83, 66, 0.12); }
.fact-k { color: var(--frost-faint); }
.fact-v { color: var(--frost-ink); }
.level-pill { border-color: rgba(56, 83, 66, 0.22); color: var(--frost-muted); }
.life-one-line { color: var(--frost-muted); }

.life-body .section,
.shell-wide > .section {
  border-radius: 18px;
  margin-top: 12px;
  padding: 26px 28px;
}
.six-grid {
  border-color: rgba(56, 83, 66, 0.13);
  background: rgba(255, 255, 255, 0.12);
}
.six-row { border-color: rgba(56, 83, 66, 0.11); }
.six-label { color: var(--frost-rose); }
.six-value { color: var(--frost-ink); }
.prose { color: var(--frost-ink); }
.time-row { border-bottom-color: rgba(56, 83, 66, 0.1); }
.time-year { color: var(--frost-green); }
.time-age, .time-change { color: var(--frost-faint); }
.time-event { color: var(--frost-ink); }
.emotion-btn {
  border-color: rgba(56, 83, 66, 0.18);
  background: rgba(255, 255, 255, 0.16);
  color: var(--frost-muted);
}
.emotion-btn.is-active {
  border-color: rgba(56, 83, 66, 0.5);
  background: rgba(56, 83, 66, 0.82);
  color: #f4fbf4;
}
.small-note { color: var(--frost-faint); }
.bottom-links { color: var(--frost-muted); }

.btn-primary {
  background: rgba(44, 66, 51, 0.9);
  color: #f4fbf4;
  border-color: rgba(44, 66, 51, 0.9);
}
.btn-primary:hover { background: var(--frost-deep); color: #fff; }
.btn-ghost {
  border-color: rgba(56, 83, 66, 0.22);
  background: rgba(255, 255, 255, 0.26);
  color: var(--frost-ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(56, 83, 66, 0.44); background: rgba(255, 255, 255, 0.42); }

.form-card { border-radius: 22px; }
.field input,
.field select,
.field textarea {
  border-color: rgba(56, 83, 66, 0.2);
  background: rgba(255, 255, 255, 0.42);
  color: var(--frost-ink);
}
.field input::placeholder,
.field textarea::placeholder { color: #97a397; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--frost-green); }
.field-label { color: var(--frost-muted); }
.optional { color: var(--frost-faint); }
.seg { border-color: rgba(56, 83, 66, 0.2); }
.seg button { color: var(--frost-muted); }
.seg button.is-active { background: rgba(44, 66, 51, 0.86); color: #f4fbf4; }
.pill-toggle { border-color: rgba(56, 83, 66, 0.22); color: var(--frost-muted); }
.pill-toggle.is-on { border-color: rgba(178, 111, 128, 0.55); color: var(--frost-rose); }
.pill-toggle.is-on .pill-dot { background: var(--frost-rose); }
.leap-row { border-color: rgba(56, 83, 66, 0.14); }
.form-note, .script-chart-line, .chart-meta, .small-note { color: var(--frost-faint); }
.script-chart-line { color: var(--frost-rose); }

.chart-grid, .chart-pillar { border-color: rgba(56, 83, 66, 0.13); }
.chart-pillar { background: rgba(255, 255, 255, 0.12); }
.chart-pillar-label { color: var(--frost-faint); }
.chart-pillar-value { color: var(--frost-ink); }
.element-pill { border-color: rgba(56, 83, 66, 0.16); color: var(--frost-muted); }
.element-pill strong { color: var(--frost-ink); }
.act-label, .ab-label { color: var(--frost-rose); }
.act-text, .ab-text { color: var(--frost-ink); }
.choice-block {
  border-left-color: var(--frost-rose);
  background: rgba(255, 255, 255, 0.2);
}
.ab-block { border-color: rgba(56, 83, 66, 0.14); background: rgba(255, 255, 255, 0.12); }
.ab-block.is-alt { border-left-color: var(--frost-rose); background: rgba(255, 255, 255, 0.24); }
.diff-box { border-color: rgba(56, 83, 66, 0.14); }
.diff-row { color: var(--frost-muted); }
.ai-fallback { border-color: rgba(56, 83, 66, 0.14); color: var(--frost-muted); }

.legal { padding-top: 42px; }
.legal-title { color: var(--frost-ink); }
.legal-section {
  margin-top: 10px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.legal-index { color: var(--frost-rose); }
.legal-heading { color: var(--frost-ink); }
.legal-text { color: var(--frost-muted); }
.legal-foot { color: var(--frost-muted); }

.toast {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(38, 56, 44, 0.9);
  color: #f6fbf5;
  backdrop-filter: blur(14px);
}

@media (max-width: 900px) {
  .cin-hero { min-height: 640px; }
  .cin-about, .cin-features, .cin-people { padding: 28px 20px 26px; border-radius: 20px; }
  .cin-people { padding-bottom: 22px; }
  .blind-setup, .form-card, .life-hero { padding: 26px 20px 24px; border-radius: 20px; }
  .life-body .section, .shell-wide > .section { padding: 22px 18px; border-radius: 16px; }
  .page-head { padding-top: 30px; }
}

@media (max-width: 420px) {
  .cin-about, .cin-features, .cin-people { padding-left: 16px; padding-right: 16px; }
  .blind-setup, .form-card, .life-hero { padding-left: 16px; padding-right: 16px; }
  .legal-section { padding: 17px 16px; }
}

/* ── floating glass top bar ────────────────────────────── */
.site-nav {
  width: min(1180px, calc(100% - 56px));
  margin-top: 14px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 12px 36px rgba(61, 86, 69, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(22px) saturate(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.06);
}

.site-nav.nav-overlay {
  top: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.66);
}

.site-nav.nav-paper {
  top: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(252, 254, 249, 0.52);
}

.site-nav .nav-seal {
  width: 32px;
  height: 32px;
}

.site-nav .nav-center a {
  padding: 7px 13px;
}

.site-nav .nav-cta {
  padding: 8px 17px;
}

@media (max-width: 900px) {
  .site-nav {
    width: calc(100% - 24px);
    margin-top: 9px;
    padding: 7px 8px 7px 12px;
    border-radius: 20px;
  }
  .site-nav.nav-overlay { top: 9px; }
  .site-nav.nav-paper { top: 8px; margin-bottom: 8px; }
  .site-nav .nav-seal { width: 29px; height: 29px; }
  .site-nav .nav-brand-text strong { font-size: 15px; }
  .site-nav .nav-cta { padding: 7px 13px; font-size: 10px; }
}

/* no hard right angles in the frosted system */
.btn,
.field input,
.field select,
.field textarea,
.seg,
.life-card-btn,
.script-picker {
  border-radius: 12px;
}

.btn,
.seg,
.pill-toggle,
.cin-btn {
  border-radius: 999px;
}

.six-grid,
.six-row,
.chart-grid,
.chart-pillar,
.ab-block,
.diff-box,
.history-row,
.note-row {
  border-radius: 12px;
  overflow: hidden;
}

.chart-pillar:first-child { border-radius: 12px 0 0 12px; }
.chart-pillar:last-child { border-radius: 0 12px 12px 0; }
.six-grid { border-radius: 14px; }
.six-row { border-radius: 0; }
.six-row:first-child { border-radius: 0 14px 0 0; }
.six-row:nth-child(2) { border-radius: 14px 0 0 0; }
.six-row:nth-last-child(2) { border-radius: 0 0 0 14px; }
.six-row:last-child { border-radius: 0 0 14px 0; }

/* annotation pass: nav, hero balance, static about, clickable modules */
.cin-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  align-items: center;
  gap: 26px;
  width: min(940px, calc(100% - 44px));
  text-align: center;
}

.cin-hero-copy { min-width: 0; }

.cin-hero-side {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: stretch;
  justify-content: center;
  padding-left: 24px;
  border-left: 1px solid rgba(56, 83, 66, 0.13);
  text-align: left;
}

.cin-hero-side div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(56, 83, 66, 0.1);
}
.cin-hero-side div:last-child { border-bottom: 0; }
.cin-hero-side strong { color: var(--frost-ink); font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.5; }
.cin-hero-side span { color: var(--frost-faint); font-size: 9px; letter-spacing: 0.04em; }

.cin-about {
  padding: 54px 0 46px;
  border: 0;
  border-bottom: 1px solid rgba(56, 83, 66, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cin-features {
  padding: 0 34px;
}
.cin-feature {
  position: relative;
  grid-template-columns: 70px minmax(0, 1fr) 24px;
  cursor: pointer;
}
.cin-feature-arrow {
  align-self: center;
  color: var(--frost-rose);
  font-size: 18px;
  opacity: 0.55;
  transition: opacity 160ms ease, transform 160ms ease;
}
.cin-feature:hover .cin-feature-arrow { opacity: 1; transform: translate(2px, -2px); }
.cin-feature:hover .cin-link { color: var(--frost-ink); }
.cin-feature:hover { border-radius: 14px; }

/* login */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(42, 58, 47, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.login-panel {
  position: relative;
  width: min(390px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 30px 80px rgba(45, 67, 51, 0.2);
  backdrop-filter: blur(28px) saturate(1.06);
  -webkit-backdrop-filter: blur(28px) saturate(1.06);
  color: var(--frost-ink);
}
.login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(56, 83, 66, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: var(--frost-muted);
  font-size: 18px;
  line-height: 1;
}
.login-panel h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
}
.login-panel p {
  margin: 10px 0 0;
  color: var(--frost-muted);
  font-size: 12px;
  line-height: 1.8;
}
.login-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 190px;
  height: 190px;
  margin: 20px auto 18px;
  border: 1px dashed rgba(56, 83, 66, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--frost-muted);
  text-align: center;
  font-size: 12px;
}
.login-qr-placeholder small { max-width: 140px; color: var(--frost-faint); font-size: 9px; line-height: 1.6; }
.login-later { width: 100%; }

@media (max-width: 900px) {
  .cin-hero-content {
    display: block;
    width: calc(100% - 32px);
    text-align: center;
  }
  .cin-hero-side { display: none; }
  .cin-about { padding: 36px 0 32px; }
  .cin-features { padding: 0 20px; }
  .cin-feature { grid-template-columns: 32px minmax(0, 1fr) 20px; }
  .login-panel { padding: 24px 20px; }
}

/* fix: paragraph selectors broke when copy was wrapped for the hero side stats */
.cin-hero-copy > p {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--frost-muted);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.9;
}

.cin-hero-copy > .cin-kicker { color: var(--frost-rose); }

@media (max-width: 900px) {
  .cin-hero-copy > p { max-width: 340px; font-size: 12px; }
}

/* the hero should occupy the full content band, not float as a narrow card */
.cin-hero { min-height: 660px; }
.cin-hero-content {
  width: min(1180px, calc(100% - 56px));
  grid-template-columns: minmax(0, 1fr) 190px;
  padding: 50px 56px;
}
@media (max-width: 900px) {
  .cin-hero { min-height: 640px; }
  .cin-hero-content { width: calc(100% - 32px); padding: 30px 22px 28px; }
}

/* ── active nav + Apple-like frosted buttons ───────────── */
.nav-center a {
  position: relative;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-center a.is-active,
.nav-overlay .nav-center a.is-active,
.site-nav.nav-paper .nav-center a.is-active {
  border-color: rgba(255, 255, 255, 0.64);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.24));
  color: var(--frost-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(63, 86, 68, 0.045),
    0 5px 16px rgba(58, 82, 65, 0.07);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}

.nav-center a.is-active::after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: 3px;
  left: 22%;
  height: 1.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--frost-rose), transparent);
  opacity: 0.85;
}

.nav-center a:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.36);
}

/* Apple-like glass buttons */
.cin-btn,
.btn,
.nav-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(64, 88, 69, 0.05),
    0 8px 22px rgba(57, 81, 63, 0.1);
  color: var(--frost-ink);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  transition:
    transform 160ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.cin-btn::before,
.btn::before,
.nav-cta::before {
  content: "";
  position: absolute;
  top: 1px;
  right: 8%;
  left: 8%;
  height: 44%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
}

.cin-btn:hover,
.btn:hover,
.nav-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.32));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 10px 26px rgba(57, 81, 63, 0.13);
}

.cin-btn:active,
.btn:active,
.nav-cta:active {
  transform: translateY(0) scale(0.985);
  box-shadow:
    inset 0 1px 3px rgba(57, 81, 63, 0.08),
    0 4px 12px rgba(57, 81, 63, 0.08);
}

.cin-btn-primary,
.btn-primary {
  border-color: rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(67, 91, 72, 0.94), rgba(41, 62, 48, 0.9));
  color: #f8fbf6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(18, 33, 23, 0.16),
    0 10px 26px rgba(44, 65, 51, 0.22);
}

.cin-btn-primary::before,
.btn-primary::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
}

.cin-btn-primary:hover,
.btn-primary:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(75, 101, 80, 0.98), rgba(45, 67, 51, 0.94));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 30px rgba(44, 65, 51, 0.26);
}

.cin-btn-ghost,
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18));
  color: var(--frost-ink);
}

.cin-btn-ghost:hover,
.btn-ghost:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.26));
  border-color: rgba(255, 255, 255, 0.86);
}

/* soft glass on secondary choices */
.emotion-btn,
.pill-toggle,
.seg {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 900px) {
  .nav-center a.is-active::after { bottom: 2px; right: 24%; left: 24%; }
}

/* slightly more translucent primary glass */
.cin-btn-primary,
.btn-primary {
  background:
    linear-gradient(180deg, rgba(63, 88, 69, 0.74), rgba(39, 61, 46, 0.64));
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
}
.cin-btn-primary:hover,
.btn-primary:hover {
  background:
    linear-gradient(180deg, rgba(69, 96, 75, 0.84), rgba(43, 66, 50, 0.72));
}

/* scale buttons with the page hierarchy */
.cin-btn {
  min-width: 156px;
  min-height: 52px;
  padding: 0 30px;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.btn {
  min-height: 46px;
  padding: 0 24px;
  font-size: 13px;
}

.form-submit,
.btn-block {
  min-height: 52px;
  font-size: 14px;
}

.card-action .btn,
.life-actions .btn,
.script-actions .btn {
  min-height: 48px;
  font-size: 13px;
}

.emotion-btn {
  min-height: 44px;
  font-size: 12px;
}

.life-card-btn {
  min-height: 48px;
  font-size: 13px;
}

.nav-cta {
  min-height: 38px;
  padding: 0 18px;
  font-size: 11px;
}

.back-link {
  font-size: 10px;
  line-height: 1.4;
}

.login-later {
  min-height: 46px;
}

@media (max-width: 900px) {
  .cin-btn {
    min-width: 0;
    min-height: 48px;
    flex: 1;
    padding: 0 16px;
    font-size: 13px;
  }
  .btn {
    min-height: 46px;
    padding: 0 20px;
    font-size: 13px;
  }
  .form-submit,
  .btn-block {
    min-height: 50px;
    font-size: 14px;
  }
  .nav-cta {
    min-height: 34px;
    padding: 0 13px;
    font-size: 10px;
  }
  .card-action .btn,
  .life-actions .btn,
  .script-actions .btn {
    min-height: 46px;
  }
}

/* script share card */
.script-share-canvas {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 750px;
  height: 1000px;
  pointer-events: none;
}

.script-actions-main {
  max-width: 980px;
  margin: 24px auto 0;
}

.script-actions-main .btn {
  flex: 1;
  min-height: 50px;
}

.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(42, 58, 47, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.share-panel {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 30px 80px rgba(45, 67, 51, 0.2);
  backdrop-filter: blur(28px) saturate(1.06);
  -webkit-backdrop-filter: blur(28px) saturate(1.06);
}

.share-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(56, 83, 66, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: var(--frost-muted);
  font-size: 18px;
  line-height: 1;
}

.share-panel h2 {
  margin: 9px 30px 0 0;
  color: var(--frost-ink);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.35;
}

.share-panel > img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(57, 81, 63, 0.12);
}

.share-actions { display: flex; gap: 8px; margin-top: 16px; }
.share-actions .btn { flex: 1; min-height: 46px; }
.share-panel p { margin: 12px 0 0; color: var(--frost-faint); font-size: 9px; line-height: 1.7; }

@media (max-width: 900px) {
  .script-actions-main { margin-top: 18px; }
  .script-actions-main .btn { flex: 1 1 0; min-height: 48px; }
  .share-panel { padding: 18px; border-radius: 20px; }
  .share-actions { flex-direction: column; }
}

.share-close-bottom {
  position: static;
  width: auto;
  height: auto;
  border-radius: 999px;
  font-size: 13px;
}
