/* Feedless landing — stationery palette taken from the app icon:
   sky paper, pencil ink, a pink eraser. Flat colour, no gradients. */
:root {
  --sky: #8fd3ff;
  --sky-deep: #6cc0f5;
  --ink: #2b2126;
  --ink-soft: #4a3d43;
  --pink: #ff7aa2;
  --pink-deep: #e0457c;
  --paper: #fffdf7;
  --rule: rgba(43, 33, 38, 0.16);

  --display: "Shantell Sans", "Comic Neue", ui-rounded, system-ui, sans-serif;
  --body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.88rem, 0.85rem + 0.12vw, 0.95rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.14rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  --step-2: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.8vw, 3.9rem);
  --step-4: clamp(2.5rem, 1rem + 6.6vw, 7rem);

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;
}

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

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

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
}

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

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--pink-deep); }

:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.15; letter-spacing: 0; }

p { margin: 0; max-width: var(--measure); text-wrap: pretty; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- top bar ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
}
.crumbs { display: flex; align-items: center; gap: 12px; min-width: 0; }
.owner { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: var(--step--1); white-space: nowrap; }
.owner img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: 0 0 0 2.5px var(--ink); }
.owner:hover span { text-decoration: underline; }
.crumb-sep { font-weight: 700; opacity: 0.45; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 2.5px var(--ink); }
.top nav { display: flex; gap: clamp(16px, 3vw, 34px); font-weight: 600; font-size: var(--step--1); white-space: nowrap; }
.top nav a { text-decoration: none; padding: 6px 2px; }
.top nav a:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(92svh, 860px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: 130px var(--gutter) 90px;
}
.hero-copy { min-width: 0; }
.hero-copy h1 { font-size: clamp(2.5rem, 1rem + 5.2vw, 5.8rem); }
.hero-copy .lede { font-size: var(--step-1); line-height: 1.38; margin-top: 0.9em; max-width: 31ch; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 2em; }
.hero-note { font-size: var(--step--1); font-weight: 600; }

/* A little feed, drawn on a canvas so hero.js can rub the posts out. */
.hero-art { position: relative; justify-self: end; width: 100%; }
.feed-frame { border: 3px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--paper); box-shadow: 0 12px 0 var(--ink); transform: rotate(2deg); }
.feed-head { display: flex; gap: 22px; padding: 15px 22px 13px; border-bottom: 3px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.05rem; background: #f1ede6; }
.feed-head span { opacity: 0.45; }
.feed-head .is-current { opacity: 1; box-shadow: 0 5px 0 -1px var(--pink); }
.feed-body { position: relative; height: clamp(330px, 46vh, 470px); }
.hero-feed { position: absolute; inset: 0; width: 100%; height: 100%; }
.eraser {
  position: absolute; left: 0; top: 0; z-index: 3; width: clamp(120px, 44%, 180px);
  pointer-events: none; will-change: transform; opacity: 0;
  filter: drop-shadow(0 7px 0 rgba(43, 33, 38, 0.18));
}
.eraser.is-on { opacity: 1; }

.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1;
  padding: 0.95em 1.35em; border-radius: 16px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 6px 0 #120c0f;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 #120c0f; }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 #120c0f; }

/* ---------- sections ---------- */
.band { padding: clamp(56px, 7vw, 96px) 0; }
.band--paper { background: var(--paper); }
.band-head { display: grid; gap: 18px; margin-bottom: clamp(22px, 3vw, 34px); }
.band-head h2, .band--get h2 { font-size: var(--step-2); }
.band--get h2 { margin-bottom: 24px; }
.band-head p { font-size: var(--step-1); line-height: 1.4; max-width: 46ch; }

/* ---------- demo: a made-up social site with the switch ---------- */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 22px; }
.switch {
  appearance: none; border: 0; cursor: pointer; font: inherit; color: inherit;
  display: inline-flex; align-items: center; gap: 14px; padding: 0; background: none;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
}
.switch-track {
  position: relative; width: 74px; height: 42px; border-radius: 999px;
  background: #cfd6da; box-shadow: inset 0 0 0 3px var(--ink); transition: background 0.18s ease;
}
.switch-track::after {
  content: ""; position: absolute; top: 6px; left: 6px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); transition: transform 0.18s ease;
}
.switch[aria-checked="true"] .switch-track { background: var(--pink); }
.switch[aria-checked="true"] .switch-track::after { transform: translateX(32px); }
.demo-hint { font-size: var(--step--1); color: var(--ink-soft); }

.browser {
  border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: 0 12px 0 var(--ink);
}
.browser-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 3px solid var(--ink); background: #f1ede6; }
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); opacity: 0.25; }
.browser-url {
  flex: 1; min-width: 0; padding: 7px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--rule);
  font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-body { display: grid; grid-template-columns: 210px 1fr; min-height: 380px; }
.site-nav { border-right: 3px solid var(--ink); padding: 20px 14px; display: grid; align-content: start; gap: 4px; background: #faf7f1; }
.site-nav span {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 0.98rem;
  transition: opacity 0.25s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
  max-height: 48px; overflow: hidden;
}
.site-nav span::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: var(--ink); flex: none; }
.site-nav .is-feed::before { border-radius: 50%; }
.site-nav .is-current { background: #ece6db; }
.demo[data-on="true"] .site-nav .is-feed { opacity: 0; max-height: 0; padding-block: 0; }

.site-main { padding: 22px clamp(16px, 3vw, 34px); display: grid; align-content: start; }
.demo[data-on="true"] .site-main { align-content: center; }
.site-feed, .site-block { grid-area: 1 / 1; transition: opacity 0.25s ease; }
.demo[data-on="true"] .site-feed, .demo[data-on="false"] .site-block { opacity: 0; visibility: hidden; pointer-events: none; }

.post { padding: 16px 0; border-bottom: 2px solid var(--rule); display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; }
.post-av { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); grid-row: span 2; }
.post-who { font-weight: 700; font-size: 0.95rem; }
.post-who small { font-weight: 500; color: var(--ink-soft); font-size: 0.85rem; margin-left: 6px; }
.post p { font-size: 1rem; line-height: 1.4; }
.post-more { padding: 16px 0 0; font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }

.site-block { align-self: center; text-align: center; padding: clamp(14px, 4vw, 44px) 0; justify-self: center; max-width: 440px; }
.site-block h3 { font-family: var(--body); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em; line-height: 1.25; }
.site-block .count { margin: 12px auto 16px; font-size: 1rem; }
.site-block .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.site-block .chips span { padding: 8px 14px; border-radius: 10px; border: 1.5px solid rgba(43, 33, 38, 0.24); font-weight: 600; font-size: 0.9rem; }
.good {
  text-align: left; border: 1.5px solid rgba(43, 33, 38, 0.16); border-radius: 12px; padding: 12px 14px;
}
.good small { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 4px; }
.good strong { font-size: 0.95rem; line-height: 1.35; display: block; }

/* ---------- details: sites + controls side by side ---------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(44px, 7vw, 110px); align-items: start; }
.duo h2 { font-size: var(--step-2); }
.duo-lede { margin-top: 14px; }
.sites { margin: 24px 0 0; }
.sites div { display: grid; grid-template-columns: 6.2em 1fr; gap: 14px; padding: 11px 0; border-top: 2px solid var(--ink); }
.sites div:last-child { border-bottom: 2px solid var(--ink); }
.sites dt { font-family: var(--display); font-weight: 800; }
.sites dd { margin: 0; text-decoration: line-through; text-decoration-color: var(--pink-deep); text-decoration-thickness: 2px; }
.control-list { display: grid; gap: 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.control-list h3 { font-size: 1.2rem; }
.control-list p { margin-top: 4px; }

/* ---------- get it ---------- */
.get { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.get > * {
  border: 3px solid var(--ink); border-radius: 18px; padding: 18px 20px; background: #fff;
  display: grid; gap: 8px; align-content: start; text-decoration: none;
}
.get h3 { font-size: 1.25rem; }
.get p { font-size: var(--step--1); }
.get .state { justify-self: start; margin-top: 10px; font-weight: 700; font-size: 0.88rem; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.get a { color: var(--ink); }
.get a .state { background: var(--pink); color: var(--ink); }
.get a:hover { background: #fff5f8; }
.get a:hover .state { background: var(--pink-deep); color: #fff; }

/* ---------- footer ---------- */
.foot { padding: 34px 0 44px; font-size: var(--step--1); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: baseline; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-weight: 600; }
.foot small { display: block; width: 100%; margin-top: 10px; font-size: 0.82rem; line-height: 1.5; }
.foot small span { display: block; max-width: 78ch; }

/* ---------- legal pages ---------- */
.legal { background: var(--paper); }
.legal .top { position: static; border-bottom: 3px solid var(--ink); background: var(--sky); }
.legal main { padding: clamp(44px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); }
.legal .doc { max-width: 68ch; }
.legal h1 { font-size: var(--step-3); }
.legal .dated { margin-top: 14px; font-size: var(--step--1); font-weight: 600; }
.legal .summary { margin: 30px 0 8px; padding: 20px 22px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; font-size: var(--step-0); max-width: none; }
.legal h2 { font-size: var(--step-1); line-height: 1.15; letter-spacing: 0; margin-top: 2.2em; }
.legal .doc p, .legal .doc ul { margin-top: 0.85em; max-width: none; }
.legal .doc ul { padding-left: 1.2em; }
.legal .doc li + li { margin-top: 0.45em; }
.legal .foot { background: var(--sky); border-top: 3px solid var(--ink); }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; padding-bottom: 70px; min-height: 0; }
  .hero-art { justify-self: center; max-width: 360px; }
  .feed-body { height: 300px; }
  .browser-body { grid-template-columns: 1fr; min-height: 0; }
  .site-nav { border-right: 0; border-bottom: 3px solid var(--ink); display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .site-nav span { padding: 7px 11px; font-size: 0.86rem; max-height: 40px; }
  .site-nav span::before { width: 12px; height: 12px; border-radius: 4px; }
  .demo[data-on="true"] .site-nav .is-feed { display: none; }
  .site-main { min-height: 440px; }
  .top nav a.hide-s { display: none; }
  .owner span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
