/* ============================================================
   Casual Contacts — marketing site
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--fg-1);
  font-family: var(--serif-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

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

a { color: inherit; }

/* ----- density ----- */
:root.density-tight  { --section-pad: 64px; --hero-pad: 88px; --container: 960px; }
:root.density-cozy   { --section-pad: 96px; --hero-pad: 128px; --container: 960px; }
:root.density-airy   { --section-pad: 144px; --hero-pad: 184px; --container: 1080px; }

/* ----- container ----- */
.container {
  max-width: var(--container, 960px);
  margin: 0 auto;
  padding: 0 64px;
}
@media (max-width: 880px) { .container { padding: 0 32px; } }
@media (max-width: 540px) { .container { padding: 0 24px; } }

/* ----- top nav ----- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 64px;
  background: color-mix(in oklab, var(--bg-page) 80%, transparent);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border-muted);
}
@media (max-width: 880px) { .topnav { padding: 14px 32px; } }
@media (max-width: 540px) { .topnav { padding: 12px 24px; } }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  color: var(--fg-1);
  text-decoration: none;
  line-height: 1;
}
.wordmark-glyph {
  display: inline-block;
  width: 22px;
  height: 30px;
  flex: 0 0 22px;
  background-color: var(--fg-1);
  -webkit-mask: url("assets/LogoLarge.svg") center / contain no-repeat;
          mask: url("assets/LogoLarge.svg") center / contain no-repeat;
}
.wordmark-text { display: inline-flex; align-items: center; line-height: 1; }
.topnav .nav-meta {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.5px;
  color: var(--fg-5);
  text-transform: uppercase;
}

/* ----- hero ----- */
.hero {
  position: relative;
  padding: var(--hero-pad, 128px) 0 var(--hero-pad, 128px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-eyebrow .rule {
  flex: 0 0 32px;
  height: 1px;
  background: var(--fg-5);
  opacity: 0.6;
}
.hero h1 {
  margin: 0 0 32px;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(32px, 2.4vw + 14px, 52px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--fg-2);
  text-wrap: balance;
  max-width: 18ch;
}
.hero h1 .ital {
  font-family: var(--serif-body);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.05em;
}

.hero-sub {
  margin: 0 0 40px;
  max-width: 520px;
  font-family: var(--serif-body);
  font-weight: 600;
  font-size: 19px;
  line-height: 28px;
  letter-spacing: -0.05em;
  color: var(--fg-3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}
.app-store-badge {
  display: block;
  height: 56px;
  width: auto;
  transition: filter 120ms var(--easing), transform 120ms var(--easing);
}
.app-store-badge:hover { filter: brightness(1.05); }
.app-store-badge:active { transform: scale(0.985); }

.hero-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--fg-5);
}
.hero-stamps span { display: block; color: var(--fg-3); margin-top: 2px; font-family: var(--serif-body); font-size: 14px; letter-spacing: -0.05em; text-transform: none; }

/* ============================================================
   HERO — Showcase composition
   ============================================================ */
.hero.hero-showcase {
  padding: 96px 0 96px;
  background: var(--bg-page);
}
.showcase-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  margin-bottom: 88px;
}
.showcase-mark .app-icon {
  width: 132px; height: 132px;
  border-radius: 22.37%;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(20,20,21,0.18);
  background: var(--D4);
}
@media (prefers-color-scheme: dark) {
  .showcase-mark .app-icon { box-shadow: 0 12px 28px rgba(0,0,0,0.55); }
}
.showcase-mark .app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

h1.showcase-title {
  margin: 8px 0 0;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(34px, 3vw + 14px, 52px);
  line-height: 1.05;
  letter-spacing: 1.5px;
  color: var(--fg-2);
}
.showcase-sub {
  margin-top: 4px;
}

.showcase-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 720px) {
  .showcase-pair { grid-template-columns: 1fr; gap: 32px; max-width: 440px; }
}
.showcase-pair figure {
  margin: 0;
  aspect-ratio: 547.4666 / 807.5277;
  /* clipped by the hero rounded-rect SVG */
  border-radius: 11.4%/7.72%;
  overflow: hidden;
  background: var(--D4);
  box-shadow: 0 24px 48px rgba(20,20,21,0.20);
}
@media (prefers-color-scheme: dark) {
  .showcase-pair figure { box-shadow: 0 24px 48px rgba(0,0,0,0.55); }
}
.showcase-noble img,
.showcase-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-tagline {
  margin: 88px auto 32px;
  max-width: 760px;
  text-align: center;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 32px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--fg-3);
  text-wrap: balance;
}

.showcase-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.showcase-actions .hero-stamps {
  justify-content: center;
}

/* ----- section ----- */
section.cc-sec {
  padding: var(--section-pad, 96px) 0;
  border-top: 1px solid var(--border-muted);
}
section.cc-sec:first-of-type { border-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
}
.section-head .label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head .label .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--fg-5);
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(28px, 2vw + 16px, 40px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--fg-2);
  text-wrap: balance;
}

/* ----- how it works ----- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.step .step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--fg-5);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.step h3 {
  margin: 0 0 16px;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  color: var(--fg-2);
  letter-spacing: 0;
}
.step p {
  margin: 0;
  font-family: var(--serif-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 26px;
  letter-spacing: -0.05em;
  color: var(--fg-3);
}

/* ----- cards gallery ----- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; gap: 20px; } }

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gallery-item .card-img {
  width: 100%;
  aspect-ratio: 1005 / 633;
  background: var(--bg-surface);
  transition: transform 200ms var(--easing);
}
.gallery-item:hover .card-img { transform: translateY(-4px); }
.gallery-item .card-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px;
}
.gallery-item .meta .name {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-2);
}
.gallery-item .meta .when {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--fg-5);
}

/* ----- essay ----- */
.essay {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) { .essay { grid-template-columns: 1fr; gap: 32px; } }

.essay aside {
  position: sticky;
  top: 96px;
}
.essay aside .pull {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.005em;
  color: var(--fg-2);
  text-wrap: balance;
}
.essay aside .pull::before {
  content: '— ';
  color: var(--fg-5);
}

.essay .body p {
  margin: 0 0 24px;
  font-family: var(--serif-body);
  font-weight: 600;
  font-size: 19px;
  line-height: 30px;
  letter-spacing: -0.05em;
  color: var(--fg-3);
  text-wrap: pretty;
}
.essay .body p:last-child { margin-bottom: 0; }
.essay .body p:first-child::first-letter {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 56px;
  float: left;
  margin: 4px 12px 0 0;
  color: var(--fg-2);
}

/* ----- iPhone screenshot strip (framed) ----- */
.scroll-strip {
  position: relative;
}

.scroll-strip .strip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}
@media (max-width: 720px) {
  .scroll-strip .strip-row { gap: 24px; }
}

.phone-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.phone-shot img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
}
.phone-shot figcaption {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.phone-shot .cap-label {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-2);
}
.phone-shot .cap-note {
  font-family: var(--serif-body);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--fg-4);
}

/* ----- FAQ ----- */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 28px;
  letter-spacing: 0;
  color: var(--fg-2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  color: var(--fg-5);
  transition: transform 200ms var(--easing);
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  margin: 16px 0 0;
  max-width: 640px;
  font-family: var(--serif-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 27px;
  letter-spacing: -0.05em;
  color: var(--fg-3);
}

/* ----- credits + privacy ----- */
.colophon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
@media (max-width: 720px) { .colophon { grid-template-columns: 1fr; gap: 40px; } }

.colophon .block .label {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--fg-5);
  margin-bottom: 16px;
}
.colophon .block .lines {
  font-family: var(--serif-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 27px;
  letter-spacing: -0.05em;
  color: var(--fg-2);
}
.colophon .block .lines .role {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--fg-5);
  text-transform: uppercase;
  margin-top: 12px;
}
.colophon .block .lines .role:first-child { margin-top: 0; }

/* ----- footer ----- */
.cc-footer {
  position: relative;
  padding: 96px 0 48px;
  border-top: 1px solid var(--border-muted);
  overflow: hidden;
}
/* footer watermark removed */
.cc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) { .cc-footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.cc-footer .brand {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  color: var(--fg-2);
  margin-bottom: 16px;
}
.cc-footer .tag {
  font-family: var(--serif-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.05em;
  color: var(--fg-3);
  max-width: 320px;
}
.cc-footer .col h4 {
  margin: 0 0 16px;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--fg-5);
}
.cc-footer .col a, .cc-footer .col span {
  display: block;
  font-family: var(--serif-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: -0.05em;
  color: var(--fg-2);
  text-decoration: none;
  margin-bottom: 4px;
}
.cc-footer .col a:hover { color: var(--fg-3); }
.cc-footer .fineprint {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--fg-5);
  text-transform: uppercase;
}

/* ----- privacy callout ----- */
.privacy-note {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-surface);
}
.privacy-note .glyph {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  color: var(--fg-2);
}
.privacy-note .copy {
  font-family: var(--serif-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.05em;
  color: var(--fg-3);
}
.privacy-note .copy strong {
  display: block;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 6px;
}

/* ----- inline glyph divider ----- */
.glyph-divider {
  display: flex;
  justify-content: center;
  margin: 16px 0;
  color: var(--fg-1);
  opacity: 0.4;
}
.glyph-divider svg { width: 28px; height: 28px; }

.showcase-mark .showcase-sub {
  margin-top: 14px;
  font-size: 18px;
  letter-spacing: 4px;
}

/* ----- utility ----- */
.eyebrow {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 2.4px;
  color: var(--fg-5);
  text-transform: uppercase;
}
