/* Crew Dibs public site. Static pages only; colours match the app icon. */
:root {
  --coral: #d85a30;
  --coral-deep: #b8461f;
  --coral-soft: #fbe9e1;
  --flag: #fac775;
  --ink: #1c1a19;
  --ink-soft: #5c5550;
  --line: #ece4df;
  --paper: #fffaf7;
  --card: #ffffff;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a { color: var(--coral-deep); }
img { max-width: 100%; display: block; }

/* Header */
.bar {
  max-width: 1080px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.bar nav { display: flex; gap: 18px; font-size: 15px; }
.bar nav a { color: var(--ink-soft); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  max-width: 1080px; margin: 0 auto; padding: 40px 20px 64px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--coral); }
.hero p.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 170px; padding: 10px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; text-decoration: none; line-height: 1.2;
}
.store small { font-size: 11px; opacity: 0.75; letter-spacing: 0.02em; }
.store strong { font-size: 17px; }
.store.soon { background: #3d3733; cursor: default; }
.note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

.phone {
  justify-self: center; width: min(300px, 80vw);
  border-radius: 38px; padding: 10px; background: #1c1a19;
  box-shadow: 0 30px 60px -25px rgba(184, 70, 31, 0.45);
}
.phone img { border-radius: 29px; }

/* Sections */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { max-width: 1080px; margin: 0 auto; padding: 64px 20px; }
.section h2 { font-size: 32px; margin: 0 0 8px; letter-spacing: -0.01em; }
.section > p { color: var(--ink-soft); margin: 0 0 36px; font-size: 17px; max-width: 40em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--coral); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.home-screen-steps { max-width: 42em; padding-left: 24px; }
.home-screen-steps li { padding-left: 6px; margin: 0 0 16px; }
.section > .home-screen-help { font-size: 15px; margin: 24px 0 16px; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shots figure { margin: 0; }
.shots img { border-radius: 22px; border: 1px solid var(--line); }
.shots figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; text-align: center; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; padding: 0; margin: 0; list-style: none; }
.features li { padding-left: 30px; position: relative; font-size: 16px; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  border-radius: 4px; background: var(--flag); box-shadow: inset 0 0 0 2px var(--coral);
}

/* Desktop availability */
.download-main { max-width: 1080px; margin: 0 auto; padding: 48px 20px 64px; }
.download-eyebrow { color: var(--coral-deep); font-weight: 700; margin: 0 0 14px; }
.download-main h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 22px; }
.download-main h1 span { color: var(--coral); }
.download-lead { max-width: 650px; font-size: 19px; color: var(--ink-soft); }
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 40px 0 28px; }
.download-grid.single { grid-template-columns: minmax(0, 560px); }
.download-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.download-card h2 { font-size: 25px; margin: 0 0 12px; }
.download-card p { color: var(--ink-soft); }
.download-card button, .download-card a { display: inline-block; border: 0; border-radius: 12px; padding: 14px 18px; font: inherit; font-weight: 600; background: var(--coral); color: white; text-decoration: none; }
.download-card button:disabled { background: var(--line); color: var(--ink-soft); }
.download-card .download-status { font-size: 14px; margin-bottom: 0; }
.preview-note { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 6px; font-size: 14px; }
.preview-note p:last-child { margin-bottom: 0; }
.preview-note ol { color: var(--ink-soft); padding-left: 22px; }
.preview-note li + li { margin-top: 8px; }
.download-help { color: var(--ink-soft); }

/* Document pages (privacy, terms, deletion) */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 20px 72px; }
.doc article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.doc h1 { font-size: 34px; line-height: 1.15; margin: 0 0 6px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc .effective-date { color: var(--ink-soft); font-weight: 600; }
.doc li { margin: 6px 0; }

/* Invite pages */
.invite { max-width: 520px; margin: 0 auto; padding: 32px 20px 72px; text-align: center; }
.invite .card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 36px 28px; }
.invite img.logo { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 18px; }
.invite h1 { font-size: 28px; margin: 0 0 10px; line-height: 1.2; }
.invite p { color: var(--ink-soft); margin: 0 0 18px; }
.button {
  display: inline-block; padding: 14px 26px; border-radius: 14px; background: var(--coral);
  color: #fff; font-weight: 700; text-decoration: none; font-size: 17px;
}
.button:hover { background: var(--coral-deep); }
.button-secondary { background: var(--card); color: var(--coral-deep); border: 1px solid var(--line); }
.button-secondary:hover { background: var(--coral-soft); }
.invite-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button[hidden] { display: none; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; background: var(--coral-soft); color: var(--coral-deep); padding: 10px 14px; border-radius: 10px; display: inline-block; word-break: break-all; }
.steps-small { text-align: left; margin: 22px 0 0; padding-left: 20px; color: var(--ink-soft); }

/* Footer */
footer { border-top: 1px solid var(--line); }
footer .inner {
  max-width: 1080px; margin: 0 auto; padding: 28px 20px 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-soft);
}
footer a { color: var(--ink-soft); margin-left: 18px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .steps, .features { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { padding: 24px; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .bar nav { display: none; }
  .doc article { padding: 24px; }
}
