/* Salty — homepage sections.
   Tokens come from styles.css. Section classes are scoped under their own .salty-* root so
   nothing leaks between sections.

   Palette note: the page is the printed-archive look (paper, ink, coral). The phone SCREENS
   are the exception — they carry the real app's colours (#eef0fb lavender, #1a1530 ink, the
   #4f6cf2 → #a25cf2 brand gradient) so what the site shows matches what someone downloads. */

:root {
  --app-bg: #eef0fb;
  --app-fg: #1a1530;
  --app-muted: #6b6a85;
  --app-border: #e6e4f0;
  --app-brand: #4f6cf2;
  --app-brand-to: #a25cf2;
  --app-accent: #503cb4;
}

/* The dark theme's glows have no place on paper. Kept as no-ops so the markup
   (three .salty-glow divs per section) needs no edit. */
.salty-glow,
.salty-install-glow { display: none; }

.salty-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.salty-head { max-width: 760px; margin-bottom: 48px; }

.salty-eyebrow,
.salty-install-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px;
  margin-bottom: 20px;
}

.salty-head h2,
.salty-install h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}

.salty-head p {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ---------- buttons ---------- */

.salty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 30px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.salty-btn--primary,
.salty-brands .salty-btn {
  background: var(--accent-text);
  color: #FFFFFF;
}
.salty-btn--primary:hover,
.salty-brands .salty-btn:hover {
  background: var(--accent-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
}
.salty-btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule);
}
.salty-btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.salty-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- hero ---------- */

.salty-hero {
  position: relative;
  background: var(--paper);
  padding: 84px 24px 72px;
  overflow: hidden;
}
.salty-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.salty-logo { width: 54px; height: 54px; margin: 0 auto 22px; display: block; }

.salty-hero h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.salty-accent { color: var(--accent); font-style: italic; }

.salty-sub {
  margin: 26px auto 0;
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.68;
  color: var(--ink-2);
}

.salty-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.salty-tagline {
  margin-top: 44px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- how it works ---------- */

.salty-hiw {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 76px 0;
}

.salty-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.salty-step {
  padding: 28px 26px;
  border-right: 1px solid var(--rule);
}
.salty-step:last-child { border-right: none; }
.salty-step:nth-child(1) { border-left: 3px solid var(--accent); }
.salty-step:nth-child(2) { border-left: 3px solid #B8860B; }
.salty-step:nth-child(3) { border-left: 3px solid #3A6AD4; }
.salty-step:nth-child(4) { border-left: 3px solid #2E7D6B; }

.salty-step-num {
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1;
  color: #C9C2C6;
  margin-bottom: 14px;
}
.salty-step h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}
.salty-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
  color: var(--ink-2);
}

/* ---------- features ---------- */

.salty-features {
  background: var(--paper);
  padding: 76px 0;
}

.salty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
}
.salty-card {
  padding: 30px 26px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.salty-card:nth-child(3n) { border-right: none; }
.salty-card:nth-last-child(-n+3) { border-bottom: none; }

.salty-icon { width: 26px; height: 26px; margin-bottom: 16px; }
.salty-icon svg { width: 100%; height: 100%; display: block; }

.salty-card h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}
.salty-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--ink-2);
}

/* ---------- phones ----------
   The frame is paper-side furniture; everything inside .salty-screen is the app. */

.salty-phones {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding: 76px 0;
}

.salty-phones-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.salty-phone {
  position: relative;
  width: 274px;
  background: #1A1118;
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(26, 17, 24, 0.22);
}
.salty-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 20px;
  background: #1A1118;
  border-radius: 20px;
  z-index: 2;
}
.salty-screen {
  background: var(--app-bg);
  border-radius: 26px;
  padding: 38px 14px 18px;
  min-height: 486px;
  font-family: var(--font-body);
  color: var(--app-fg);
}
.salty-screen-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
  margin-bottom: 14px;
}

.salty-event-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 9px;
  box-shadow: 0 4px 12px rgba(80, 60, 180, 0.07);
}
.salty-event-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
  background: #cfd6f3;
}
.salty-event-thumb--1 { background: linear-gradient(160deg, #4f6cf2, #a25cf2); }
.salty-event-thumb--2 { background: linear-gradient(160deg, #3F5A6B, #1B3A6B); }
.salty-event-thumb--3 { background: linear-gradient(160deg, #a25cf2, #6B4A66); }
.salty-event-text { min-width: 0; }
.salty-event-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--app-fg);
  line-height: 1.25;
}
.salty-event-date {
  font-size: 11.5px;
  color: var(--app-muted);
  margin-top: 2px;
}

.salty-ticket {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(80, 60, 180, 0.08);
}
.salty-ticket-event {
  font-size: 17px;
  font-weight: 700;
  color: var(--app-fg);
  line-height: 1.2;
}
.salty-ticket-venue {
  font-size: 11.5px;
  color: var(--app-muted);
  margin-top: 4px;
}
.salty-ticket-dash {
  height: 1px;
  margin: 13px 0;
  background: repeating-linear-gradient(90deg, var(--app-border) 0 5px, transparent 5px 10px);
}
.salty-ticket-stats { display: flex; gap: 16px; }
.salty-val {
  font-size: 21px;
  font-weight: 700;
  color: var(--app-brand);
  line-height: 1;
}
.salty-lbl {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-muted);
  margin-top: 4px;
}

/* The one gradient number, exactly as the app's Stats tab draws it. */
.salty-big-stat {
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background-image: linear-gradient(90deg, var(--app-brand), var(--app-brand-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.salty-big-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
  margin-top: 8px;
}
.salty-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}
.salty-stat-tile {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(80, 60, 180, 0.07);
}
.salty-stat-tile .salty-val { color: var(--app-fg); font-size: 22px; }

/* ---------- for brands ---------- */

.salty-brands {
  background: var(--paper);
  padding: 76px 0;
}
.salty-panel {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: 56px 48px;
  overflow: hidden;
}
.salty-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.salty-brands .salty-eyebrow { color: #FF6B80; border-bottom-color: var(--accent); }
.salty-brands h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--paper);
}
.salty-lede {
  font-size: 15.5px;
  line-height: 1.7;
  color: #B5AAB8;
  margin: 0 0 28px;
}

.salty-list { display: flex; flex-direction: column; gap: 22px; }
.salty-item { display: flex; gap: 14px; align-items: flex-start; }
.salty-item-icon { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.salty-item-icon svg { width: 100%; height: 100%; display: block; }
.salty-item h4 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--paper);
}
.salty-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: #B5AAB8;
}

/* ---------- faq ---------- */

.salty-faq {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding: 76px 0;
}
.salty-faq details {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
}
.salty-faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.salty-faq summary {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.salty-faq summary::-webkit-details-marker { display: none; }
.salty-faq summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--accent-text);
  flex: none;
  line-height: 1;
}
.salty-faq details[open] summary::after { content: '–'; }
.salty-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.salty-answer {
  margin-top: 14px;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------- install ---------- */

.salty-install {
  position: relative;
  background: var(--paper);
  padding: 96px 24px;
  text-align: center;
  overflow: hidden;
}
.salty-install-wrap { max-width: 720px; margin: 0 auto; }
.salty-install h2 { margin: 0; }
.salty-install-sub {
  margin: 20px auto 0;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

.store-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 26px;
  border-radius: 4px;
  background: var(--accent-text);
  color: #FFFFFF;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.store-btn:hover { background: var(--accent-dark); color: #FFFFFF; transform: translateY(-1px); }
.store-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.store-icon { width: 26px; height: 26px; flex: none; }
.store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-sub { font-size: 11px; letter-spacing: 0.04em; opacity: 0.9; }
.store-main { font-size: 18px; font-weight: 600; }

.store-badge-link { display: inline-flex; align-items: center; }
.store-badge { display: block; }
.store-badge--play { height: 60px; width: auto; }

.salty-install-note {
  margin: 24px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .salty-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .salty-step:nth-child(2) { border-right: none; }
  .salty-step:nth-child(1), .salty-step:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .salty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .salty-card:nth-child(3n) { border-right: 1px solid var(--rule); }
  .salty-card:nth-child(2n) { border-right: none; }
  .salty-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .salty-card:nth-last-child(-n+2) { border-bottom: none; }
  .salty-content { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .salty-hero { padding: 56px 20px 56px; }
  .salty-steps, .salty-grid { grid-template-columns: 1fr; }
  .salty-step, .salty-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .salty-step:last-child, .salty-card:last-child { border-bottom: none; }
  .salty-card:nth-child(2n) { border-right: none; }
  .salty-panel { padding: 36px 24px; }
  .salty-phones-row { gap: 24px; }
  .salty-install { padding: 64px 20px; }
}
