/* Chromora public website */
:root {
  --ink: #17231f;
  --muted: #5f6965;
  --soft: #f7f2ec;
  --paper: #fffdfa;
  --band: #edf5f3;
  --line: #ddd6cc;
  --teal: #287a74;
  --teal-dark: #1f615c;
  --coral: #d78975;
  --gold: #d3b56e;
  --lavender: #a992c7;
  --sky: #91c9db;
  --shadow: 0 18px 44px rgba(23, 35, 31, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--teal-dark);
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 250, 0.92);
  border-bottom: 1px solid rgba(221, 214, 204, 0.9);
  backdrop-filter: blur(16px);
}

.nav-inner,
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-weight: 750;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(40, 122, 116, 0.24);
}

.button.primary:hover {
  color: #fff;
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 253, 250, 0.88);
  border-color: var(--line);
}

.button.secondary:hover {
  color: var(--ink);
  border-color: var(--teal);
}

.button[aria-disabled="true"] {
  cursor: default;
  opacity: 0.72;
}

.button[aria-disabled="true"]:hover {
  border-color: var(--line);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero {
  position: relative;
  min-height: clamp(590px, 82svh, 760px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 35, 31, 0.90) 0%, rgba(23, 35, 31, 0.72) 44%, rgba(23, 35, 31, 0.18) 100%),
    linear-gradient(180deg, rgba(247, 242, 236, 0.02), rgba(247, 242, 236, 0.8)),
    url("assets/mandala_preview.png") center right / min(78vw, 880px) no-repeat,
    var(--soft);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(247, 242, 236, 0), var(--soft));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  min-height: inherit;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 56px 0 90px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f2d7ce;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.hero h1 {
  margin: 14px 0 18px;
  color: #fffdfa;
  font-size: clamp(56px, 10vw, 112px);
  line-height: 0.88;
  font-weight: 950;
}

.hero p {
  max-width: 570px;
  margin: 0 0 28px;
  color: rgba(255, 253, 250, 0.86);
  font-size: clamp(18px, 2vw, 23px);
}

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

.store-note {
  margin-top: 14px;
  color: rgba(255, 253, 250, 0.72);
  font-size: 14px;
}

.hero-device {
  position: absolute;
  right: max(20px, calc((100vw - 1120px) / 2));
  bottom: 62px;
  width: min(310px, 33vw);
  min-width: 220px;
  padding: 14px;
  border-radius: 32px;
  background: #101b18;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.phone-screen {
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.phone-top {
  padding: 18px 16px 10px;
}

.phone-title {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
}

.phone-subtitle {
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.phone-art {
  margin: 0 14px;
  aspect-ratio: 1;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 17%, rgba(40, 122, 116, 0.34) 18% 22%, transparent 23% 100%),
    conic-gradient(from 0deg, var(--coral), var(--gold), var(--sky), var(--lavender), var(--coral));
  border: 8px solid #fff;
  box-shadow: inset 0 0 0 2px rgba(23, 35, 31, 0.12);
}

.phone-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px;
}

.swatch {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid rgba(23, 35, 31, 0.12);
}

.swatch:nth-child(1) { background: var(--teal); }
.swatch:nth-child(2) { background: var(--coral); }
.swatch:nth-child(3) { background: var(--gold); }
.swatch:nth-child(4) { background: var(--lavender); }

.section {
  padding: 78px 0;
}

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

.section-header {
  max-width: 720px;
  margin-bottom: 34px;
}

.label {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.section-header p,
.lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--band);
  color: var(--teal);
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 18px;
  align-items: stretch;
}

.download-card {
  background: var(--ink);
  color: #fffdfa;
  border-radius: var(--radius);
  padding: 28px;
}

.download-card p {
  color: rgba(255, 253, 250, 0.78);
}

.download-meta {
  display: grid;
  gap: 10px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.meta-row strong {
  font-size: 14px;
}

.meta-row span {
  color: var(--muted);
  text-align: right;
  overflow-wrap: anywhere;
}

.page-hero {
  padding: 72px 0 42px;
  background: var(--band);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.96;
}

.content {
  padding: 54px 0 82px;
}

.prose {
  max-width: 900px;
}

.prose h2 {
  margin: 38px 0 12px;
  font-size: 28px;
}

.prose h3 {
  margin-top: 22px;
  font-size: 20px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 22px;
}

.notice {
  margin-bottom: 26px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.site-footer {
  color: rgba(255, 253, 250, 0.74);
  background: var(--ink);
  padding: 46px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.7fr);
  gap: 28px;
}

.site-footer .brand {
  color: #fffdfa;
}

.site-footer p {
  margin: 12px 0 0;
  max-width: 360px;
}

.site-footer h4 {
  margin: 0 0 12px;
  color: #fffdfa;
}

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

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

.site-footer a {
  color: rgba(255, 253, 250, 0.78);
}

.site-footer a:hover {
  color: #fffdfa;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 253, 250, 0.12);
  font-size: 14px;
}

@media (max-width: 920px) {
  .nav-inner {
    min-height: 64px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-links {
    position: fixed;
    inset: 64px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

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

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child {
    border-bottom: 0;
    padding-top: 12px;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(23, 35, 31, 0.92), rgba(23, 35, 31, 0.78)),
      url("assets/mandala_preview.png") center 52% / min(760px, 145vw) no-repeat,
      var(--ink);
  }

  .hero-content {
    display: block;
    min-height: 80svh;
    padding: 58px 0 72px;
  }

  .hero-device {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(280px, 82vw);
    margin-top: 34px;
  }

  .grid.three,
  .grid.two,
  .download-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .footer-bottom {
    display: block;
  }
}

@media (max-width: 520px) {
  .nav-inner,
  .container,
  .hero-content {
    width: min(100% - 28px, 1120px);
  }

  .nav-inner {
    gap: 12px;
  }

  .brand {
    gap: 8px;
    font-size: 18px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .nav-toggle {
    min-width: 84px;
    max-width: 104px;
    height: 46px;
    flex: 0 0 auto;
    font-size: 16px;
  }

  .eyebrow {
    max-width: 100%;
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.085em;
  }

  .eyebrow::before {
    flex: 0 0 auto;
    margin-top: 5px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 60px);
    line-height: 0.96;
    overflow-wrap: anywhere;
  }

  .hero p {
    max-width: 100%;
    font-size: 20px;
    line-height: 1.55;
  }

  .store-note {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions .button {
    width: 100%;
  }

  .meta-row {
    display: block;
  }

  .meta-row span {
    display: block;
    margin-top: 4px;
    text-align: left;
  }
}
