/* ==========================================================================
   Nacura — Marketing Site Stylesheet
   Palette: terracotta, warm cream, sand, deep umber, muted sage
   ========================================================================== */

:root {
  --terracotta: #c06848;
  --terracotta-dark: #a4543a;
  --terracotta-soft: #e8c4b4;
  --ochre: #d9a05b;
  --sand: #ede3d6;
  --cream: #faf6f0;
  --warm-white: #fffdf9;
  --ink: #2e2420;
  --ink-soft: #5c4f47;
  --sage: #7d8b70;
  --line: #e2d6c6;
  --line-strong: #d5c5b3;
  --shadow-soft: 0 22px 70px rgba(46, 36, 32, 0.08);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --radius: 8px;
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: #fbf7f1;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--terracotta-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--ink-soft);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 780px;
}

section {
  padding: 82px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.section-intro {
  max-width: 640px;
  margin-top: 16px;
  font-size: 1.1rem;
}

/* ---------- Header ---------- */

.site-header {
  background: rgba(250, 246, 240, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
}

.logo:hover {
  text-decoration: none;
}

.logo svg,
.logo img {
  width: 30px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.main-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.main-nav a.active {
  color: var(--terracotta-dark);
}

.main-nav a.btn-primary,
.main-nav a.btn-primary:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-soft);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: rgba(46, 36, 32, 0.04);
}

.btn-light {
  background: var(--cream);
  color: var(--terracotta-dark);
}

.btn-light:hover {
  background: #fff;
}

/* ---------- Hero ---------- */

.hero {
  padding: 104px 0 92px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.92) 0%, rgba(250, 246, 240, 0.98) 100%),
    repeating-linear-gradient(90deg, rgba(226, 214, 198, 0.32) 0 1px, transparent 1px 96px);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero .lede {
  font-size: 1.2rem;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-device {
  justify-self: center;
  width: min(100%, 390px);
  text-align: center;
}

.phone-frame {
  position: relative;
  width: clamp(250px, 30vw, 340px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 48px;
  background:
    linear-gradient(145deg, #2e2925 0%, #0f0d0b 46%, #4a423b 100%);
  box-shadow:
    0 34px 80px rgba(46, 36, 32, 0.18),
    0 12px 28px rgba(46, 36, 32, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 43px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  border-radius: 38px;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-device p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.continuity-panel,
.phase-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.92), rgba(250, 246, 240, 0.98)),
    repeating-linear-gradient(135deg, rgba(226, 214, 198, 0.34) 0 1px, transparent 1px 18px);
  box-shadow: var(--shadow-soft);
}

.continuity-panel::before,
.phase-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(226, 214, 198, 0.72);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

.hero-panel {
  min-height: 420px;
  padding: 34px;
  display: flex;
  align-items: center;
}

.panel-glow {
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--terracotta), var(--sage), var(--ochre));
  opacity: 0.42;
}

.panel-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.82);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-header img {
  width: 26px;
  height: 26px;
}

.panel-feature {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.panel-kicker,
.phase-panel-label,
.phase-card span,
.integration-map span {
  display: block;
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-feature strong,
.phase-card strong,
.integration-map strong,
.checkin-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.22;
}

.panel-feature p,
.checkin-card p {
  margin-top: 10px;
  font-size: 0.94rem;
}

.panel-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.panel-timeline::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 17px;
  height: 1px;
  background: var(--line-strong);
}

.panel-timeline div {
  position: relative;
  padding-top: 34px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.panel-timeline div::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 17px;
  height: 17px;
  transform: translateX(-50%);
  border: 2px solid var(--terracotta);
  border-radius: 999px;
  background: var(--warm-white);
}

.panel-threads {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.panel-threads span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.panel-threads span:nth-child(1) {
  width: 86%;
}

.panel-threads span:nth-child(2) {
  width: 64%;
}

.panel-threads span:nth-child(3) {
  width: 74%;
}

/* Page hero (interior pages) */

.page-hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 18px;
  max-width: 720px;
}

.page-hero .lede {
  font-size: 1.15rem;
  max-width: 640px;
}

/* ---------- Alternating sections ---------- */

.band {
  background: var(--warm-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-sand {
  background: var(--sand);
}

.band-ink {
  background: var(--ink);
}

.band-ink h2,
.band-ink h3 {
  color: var(--cream);
}

.band-ink p {
  color: #cfc3b8;
}

/* ---------- Cards / grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.card {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: 0 12px 40px rgba(46, 36, 32, 0.04);
}

.band .card,
.band-sand .card {
  background: var(--cream);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.97rem;
}

.card .phase-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--terracotta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Split feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}

.feature-row+.feature-row {
  border-top: 1px solid var(--line);
}

.feature-row h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.feature-row.flip .phase-panel {
  order: -1;
}

.phase-panel {
  min-height: 340px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.phase-panel-label {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.phase-card,
.checkin-card,
.integration-map>div {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.88);
}

.phase-card {
  padding: 22px;
}

.phase-card.primary {
  background: var(--warm-white);
}

.phase-card.primary.muted {
  background: var(--cream);
}

.phase-card-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.phase-card.small {
  padding: 18px;
}

.phase-card.small strong {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.phase-rail {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.phase-rail span,
.note-stack span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.phase-rail span:nth-child(1),
.note-stack span:nth-child(1) {
  width: 92%;
}

.phase-rail span:nth-child(2),
.note-stack span:nth-child(2) {
  width: 68%;
}

.phase-rail span:nth-child(3),
.note-stack span:nth-child(3) {
  width: 78%;
}

.checkin-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  padding: 22px;
}

.checkin-dot {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  border: 2px solid var(--terracotta);
  border-radius: 999px;
  background: var(--terracotta-soft);
}

.note-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin: 22px 0;
}

.integration-map {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.integration-map>div {
  padding: 18px 20px;
}

.integration-map strong {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.feature-list {
  list-style: none;
  margin-top: 18px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--terracotta-soft);
  border: 2px solid var(--terracotta);
}

/* ---------- Quote / principle ---------- */

.principle {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.principle blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
}

.band-ink .principle blockquote {
  color: var(--cream);
}

.principle cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--terracotta);
}

/* ---------- Bios ---------- */

.bio {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 44px;
  padding: 56px 0;
  align-items: start;
}

.bio+.bio {
  border-top: 1px solid var(--line);
}

.bio-portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-portrait span {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--terracotta);
}

.bio h3 {
  font-size: 1.5rem;
}

.bio .role {
  color: var(--terracotta);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 6px 0 18px;
}

.bio p+p {
  margin-top: 14px;
}

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 40px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  padding: 18px 36px 18px 0;
  list-style: none;
  position: relative;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--terracotta);
  font-family: var(--font-body);
  font-weight: 300;
}

.faq-list details[open] summary::after {
  content: "\2013";
}

.faq-list details p {
  padding: 0 0 22px;
  max-width: 700px;
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  max-width: 560px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--terracotta-soft);
  border-color: var(--terracotta);
}

.inline-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  flex-wrap: wrap;
}

.inline-form input {
  flex: 1;
  min-width: 240px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--warm-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.inline-form input:focus {
  outline: 2px solid var(--terracotta-soft);
  border-color: var(--terracotta);
}

.form-note {
  margin-top: 14px;
  font-size: 0.83rem;
  color: var(--ink-soft);
}

.consent-field {
  margin-top: 4px;
  margin-bottom: 24px;
}

.form-field .checkbox-label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

.form-field .checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--terracotta);
  cursor: pointer;
}

.form-field .checkbox-label span {
  display: block;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 16px;
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-band .inline-form {
  margin: 0 auto;
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #cfc3b8;
  padding: 64px 0 40px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.site-footer .logo {
  color: var(--cream);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.site-footer p {
  color: #a89a8d;
  max-width: 300px;
  font-size: 0.9rem;
}

.site-footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: #cfc3b8;
}

.site-footer a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
  color: #a89a8d;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 72px 0;
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  margin-bottom: 10px;
}

.legal .updated {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.4rem;
  margin: 40px 0 14px;
}

.legal p+p {
  margin-top: 14px;
}

.legal ul {
  margin: 14px 0 14px 22px;
  color: var(--ink-soft);
}

.legal li {
  margin-bottom: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  section {
    padding: 64px 0;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-device {
    width: 100%;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row.flip .phase-panel {
    order: 0;
  }

  .bio {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bio-portrait {
    width: 140px;
    height: 140px;
  }

  .bio-portrait span {
    font-size: 2.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 30px 22px;
  }

  .hero-panel,
  .phase-panel {
    min-height: auto;
    padding: 24px;
  }

  .phone-frame {
    width: min(78vw, 300px);
    border-radius: 42px;
  }

  .phone-frame img {
    border-radius: 33px;
  }

  .panel-shell {
    padding: 20px;
  }

  .panel-feature {
    padding: 20px;
  }

  .phase-card-row {
    grid-template-columns: 1fr;
  }
}
