/* IndieChat — indiechat.in. Warm off-white, khadi weave, neel indigo used sparingly. */
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #FAF7F1;
  --bg-2: #F3EEE3;
  --ink: #1A1B22;
  --ink-2: #48473F;
  --muted: #6E6B62;
  --rule: #E3DCCD;
  --accent: #2F3F9E;
  --bezel: #17181D;
  --bezel-ring: rgba(0, 0, 0, .06);
  --shadow: 40, 30, 15;
  --weft: rgba(104, 84, 48, .026);
  --warp: rgba(104, 84, 48, .018);

  --khadi:
    repeating-linear-gradient(0deg, var(--weft) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, var(--warp) 0 1px, transparent 1px 5px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .7' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 0 0 0 .2 -.07'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --display: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --space: clamp(4.5rem, 11vw, 9rem);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --bg-2: #1B1A17;
    --ink: #EEEBE4;
    --ink-2: #C2BEB4;
    --muted: #918D84;
    --rule: #2D2B27;
    --accent: #9AA9EC;
    --bezel: #060607;
    --bezel-ring: rgba(255, 255, 255, .09);
    --shadow: 0, 0, 0;
    --weft: rgba(255, 238, 205, .022);
    --warp: rgba(255, 238, 205, .015);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  /* Khadi: an uneven warp and weft, plus faint slubs along the weft. */
  background-image: var(--khadi);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
p { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left));
}
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
@media (min-width: 1024px) { .wrap { padding-inline: 32px; } }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 10px;
  font: 700 1.125rem/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { border-radius: 22%; }
.top-cta {
  padding-block: 12px;
  font-size: .875rem;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}
.top-cta:focus-visible, .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
@media (hover: hover) and (pointer: fine) {
  .top-cta:hover { color: var(--accent); }
}
@media (max-width: 359px) { .top-cta { display: none; } }

/* Hero */
.hero { padding-block: clamp(3rem, 9vw, 7.5rem) clamp(3rem, 7vw, 5.5rem); }
.slogan {
  font-size: clamp(2rem, 10.6vw, 6.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.slogan span { display: block; }
.slogan .accent { color: var(--accent); }
.lede {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 32ch;
  font-size: clamp(1.125rem, 1rem + .55vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  padding: 11px 22px 11px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font: 600 1.125rem/1.15 var(--display);
  letter-spacing: -0.005em;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
.badge span { display: flex; flex-direction: column; }
.badge small {
  font: 500 .6875rem/1.3 var(--text);
  letter-spacing: .04em;
  opacity: .78;
}

/* Screens */
.shot { margin: 0; container-type: inline-size; }
.phone {
  position: relative;
  padding: 3cqi;
  border-radius: 13.5cqi;
  background: var(--bezel);
  box-shadow:
    0 0 0 1px var(--bezel-ring),
    0 1.5cqi 3cqi -1cqi rgba(var(--shadow), .16),
    0 12cqi 24cqi -8cqi rgba(var(--shadow), .30);
}
.phone::before { /* power key */
  content: "";
  position: absolute;
  right: -.8cqi;
  top: 26cqi;
  width: .8cqi;
  height: 15cqi;
  border-radius: 0 1cqi 1cqi 0;
  background: var(--bezel);
}
.phone::after { /* punch-hole camera */
  content: "";
  position: absolute;
  top: 5.7cqi;
  left: 50%;
  width: 3.4cqi;
  height: 3.4cqi;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #0B0B0D;
  box-shadow: inset 0 0 0 .7cqi #1F2026;
}
.phone img {
  display: block;
  width: 100%;
  aspect-ratio: 720 / 1600;
  border-radius: 10.5cqi;
  background: #fff;
}
@media (prefers-color-scheme: dark) {
  .shot-stories img, .shot-business img { filter: brightness(.9); }
}
.shot figcaption {
  margin-top: 18px;
  text-align: center;
  font-size: .9375rem;
  color: var(--muted);
}
.shot figcaption strong { color: var(--ink); font-weight: 600; }

.stage {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
  padding-block: 8px 24px;
}
.stage::-webkit-scrollbar { display: none; }
.stage .shot { flex: 0 0 min(68vw, 300px); scroll-snap-align: start; }
@media (min-width: 760px) {
  .stage {
    display: grid;
    grid-template-columns: 1fr 1.14fr 1fr;
    align-items: start;
    gap: clamp(24px, 4vw, 56px);
    max-width: 1040px;
    overflow: visible;
    padding-block: 0;
  }
  .stage .shot { flex: none; }
  .shot-stories { order: 1; margin-top: 64px; }
  .shot-chats { order: 2; }
  .shot-business { order: 3; margin-top: 64px; }
}

/* What it is */
.intro { padding-block: var(--space) 0; }
.statement {
  max-width: 24em;
  font: 600 clamp(1.5rem, 1rem + 2.1vw, 2.6rem)/1.24 var(--display);
  letter-spacing: -0.022em;
  color: var(--muted);
  text-wrap: pretty;
}
.statement strong { color: var(--ink); font-weight: 600; }

/* Features */
.features {
  display: grid;
  gap: 2.25rem;
  padding-block: var(--space);
}
.features h2 {
  font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.feat { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.feat li {
  display: grid;
  gap: 6px;
  padding-block: 22px;
  border-top: 1px solid var(--rule);
}
.feat h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.feat p { color: var(--ink-2); max-width: 40ch; }
.note { margin-top: 20px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 680px) {
  .feat li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; padding-block: 26px; }
}
@media (min-width: 960px) {
  .features { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .features h2 { position: sticky; top: 40px; }
}

/* Get it */
.get {
  border-top: 1px solid var(--rule);
  background-color: var(--bg-2);
  background-image: var(--khadi);
  padding-block: var(--space);
  text-align: center;
}
.get h2 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.get p:not(.badge) { margin-top: 1rem; color: var(--ink-2); font-size: 1.125rem; text-wrap: balance; }

/* Footer */
.foot {
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  font-size: .875rem;
  color: var(--muted);
}

/* Motion: a first-visit page, so the entrance gets a little time. Transform + opacity only. */
@keyframes rise { from { opacity: 0; transform: translateY(.32em); } }
@keyframes rise-sm { from { opacity: 0; transform: translateY(12px); } }
.slogan span { animation: rise 900ms var(--ease-out) 60ms both; }
.slogan span:nth-child(2) { animation-delay: 150ms; }
.slogan span:nth-child(3) { animation-delay: 240ms; }
.hero .lede { animation: rise-sm 900ms var(--ease-out) 360ms both; }
.hero .badge { animation: rise-sm 900ms var(--ease-out) 440ms both; }

.js .reveal:not(.stage) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.js .feat li:nth-child(2) { transition-delay: 70ms; }
.js .feat li:nth-child(3) { transition-delay: 140ms; }
.js .feat li:nth-child(4) { transition-delay: 210ms; }
.js .feat li:nth-child(5) { transition-delay: 280ms; }
.js .reveal.in:not(.stage) { opacity: 1; transform: none; }
.js .stage .shot {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out);
}
.js .stage .shot-stories { transition-delay: 90ms; }
.js .stage .shot-business { transition-delay: 180ms; }
.js .stage.in .shot { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  @keyframes fade { from { opacity: 0; } }
  .slogan span, .hero .lede, .hero .badge { animation-name: fade; animation-duration: 400ms; }
  .js .reveal:not(.stage), .js .stage .shot { transform: none; transition: opacity 400ms ease; transition-delay: 0ms; }
}
