/* 48Hrs website. Brand colors from the Build Spec: champagne gold on espresso, Poppins. */
:root {
  --espresso: #1C1A17;
  --graphite: #3A352F;
  --gold: #C9A96E;
  --ivory: #F7F2E8;
  --sand: #D9CDB8;
  --taupe: #9A8F80;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--espresso);
  color: var(--ivory);
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; max-width: 1100px; width: 100%; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-weight: 600; font-size: 20px; letter-spacing: .5px; }
.brand sup { font-size: 9px; font-weight: 500; }
nav { display: flex; gap: 24px; }
nav a { color: var(--sand); text-decoration: none; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--gold); }

main {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px 20px 48px; gap: 24px;
}
.wordmark { font-size: clamp(40px, 8vw, 64px); font-weight: 600; color: var(--gold); letter-spacing: 1px; line-height: 1; margin: 0; }
.wordmark sup { font-size: .22em; font-weight: 500; margin-left: 2px; }
.slogan { font-size: clamp(22px, 4vw, 32px); font-weight: 600; margin: 0; }
.sub { color: var(--sand); font-size: 17px; line-height: 1.6; max-width: 520px; margin: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: 999px; background: var(--graphite); color: var(--sand); font-size: 14px;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }

.card {
  background: var(--graphite); border-radius: 12px; padding: 32px 28px; max-width: 480px; width: 100%;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px;
  border-radius: 12px; background: var(--gold); color: var(--espresso); font-weight: 600; font-size: 16px; text-decoration: none;
}
.email { font-size: 20px; font-weight: 500; color: var(--ivory); text-decoration: none; word-break: break-all; }

footer { text-align: center; color: var(--taupe); font-size: 13px; padding: 24px; }

/* Hourglass: the sand drains into the heart, then it flips. Still when reduced motion is on. */
.hourglass { width: 120px; height: 156px; }
.hg { animation: flip 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.top-sand { animation: drain 3.6s linear infinite; transform-box: fill-box; transform-origin: bottom; }
.heart { animation: fill 3.6s linear infinite; transform-box: fill-box; transform-origin: bottom; }
.stream { animation: stream 3.6s linear infinite; }
@keyframes flip { 0%, 75% { transform: rotate(0); } 95%, 100% { transform: rotate(180deg); } }
@keyframes drain { 0% { transform: scaleY(1); } 70%, 100% { transform: scaleY(0); } }
@keyframes fill { 0% { transform: scaleY(0); } 70%, 100% { transform: scaleY(1); } }
@keyframes stream { 0%, 2% { opacity: 0; } 5%, 66% { opacity: 1; } 70%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hg, .top-sand, .heart, .stream { animation: none; }
}

@media (max-width: 520px) {
  header { padding: 16px; }
  nav { gap: 16px; }
  .card { padding: 24px 16px; }
}

/* Long-form pages: privacy, terms, support */
.doc { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 16px 24px 56px; line-height: 1.7; }
.doc h1 { font-size: clamp(28px, 5vw, 36px); font-weight: 600; margin: 8px 0 4px; }
.doc h2 { font-size: 20px; font-weight: 600; color: var(--gold); margin: 32px 0 8px; }
.doc h3 { font-size: 16px; font-weight: 600; margin: 20px 0 4px; }
.doc p, .doc li { color: var(--sand); font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--ivory); font-weight: 500; }
.doc .updated { color: var(--taupe); font-size: 14px; margin: 0 0 24px; }
.doc .callout { background: var(--graphite); border-radius: 12px; padding: 16px 20px; margin: 16px 0; }
.doc .notice, .notice { color: var(--ivory); font-weight: 600; font-size: 16px; text-transform: uppercase; line-height: 1.6; }
.doc .caps { color: var(--ivory); font-weight: 600; text-transform: uppercase; }
.doc .callout p { margin: 0; }
.doc details { background: var(--graphite); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
.doc summary { cursor: pointer; color: var(--ivory); font-weight: 500; }
.doc details p { margin: 10px 0 0; }
footer nav { justify-content: center; margin-bottom: 8px; gap: 20px; }
footer nav a { font-size: 13px; }

/* Home page sections */
main.home { justify-content: flex-start; gap: 0; padding: 0 20px 24px; }
.hero { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 32px 0 56px; }
.band { width: 100%; max-width: 1000px; padding: 40px 0; border-top: 1px solid var(--graphite); }
.band h2 { font-size: clamp(24px, 4vw, 30px); font-weight: 600; color: var(--gold); margin: 0 0 24px; }
.band h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; color: var(--ivory); }
.band p { color: var(--sand); font-size: 15px; line-height: 1.65; margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; text-align: left; }
.steps li { background: var(--graphite); border-radius: 12px; padding: 20px; }
.steps span { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--espresso); font-weight: 600; align-items: center; justify-content: center; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; text-align: left; }
.tile { background: var(--graphite); border-radius: 12px; padding: 20px; }
.tile.vip { border: 2px solid var(--gold); }
.band .price { font-size: 26px; font-weight: 600; color: var(--gold); margin: 4px 0 10px; }
.price small { font-size: 13px; color: var(--sand); font-weight: 400; }
.band .fine { font-size: 13px; color: var(--taupe); margin-top: 16px; }
.about-band { text-align: center; }
.about-band p { max-width: 640px; margin: 0 auto 16px; }
.about-band strong { color: var(--ivory); font-weight: 500; }
footer { line-height: 1.8; }
.pill { height: auto; min-height: 36px; padding: 8px 16px; text-align: center; line-height: 1.4; }
@media (max-width: 520px) {
  header { flex-wrap: wrap; gap: 10px; }
  nav { gap: 14px; flex-wrap: wrap; }
  nav a { font-size: 14px; }
}
.doc .table-wrap { overflow-x: auto; margin: 12px 0 16px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--graphite); }
.doc th { font-weight: 600; color: var(--ivory); }

/* Log in link in the header */
nav a.nav-login { color: var(--espresso); background: var(--gold); padding: 6px 14px; border-radius: 999px; font-weight: 500; }
nav a.nav-login:hover, nav a.nav-login[aria-current="page"] { color: var(--espresso); filter: brightness(1.08); }

/* App store buttons */
.stores { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn.store { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.store.alt { background: var(--ivory); }

/* Account pages */
main.acct { justify-content: flex-start; gap: 0; padding: 16px 16px 48px; }
.acct .view { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.acct .view[hidden] { display: none; }
.acct h1 { font-size: clamp(26px, 5vw, 32px); font-weight: 600; margin: 8px 0 0; }
.acct .sub { font-size: 16px; }
.acct .sub strong { color: var(--ivory); font-weight: 500; }
.panel { background: var(--graphite); border-radius: 12px; padding: 24px 20px; width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.panel.left { text-align: left; }
.panel label, .panel legend, .panel .label { font-size: 14px; font-weight: 500; color: var(--sand); text-align: left; }
.panel input:not([type=checkbox]):not([type=radio]) {
  height: 52px; border-radius: 12px; border: 1px solid #5a5248; background: var(--espresso); color: var(--ivory);
  font: inherit; font-size: 16px; padding: 0 16px; width: 100%;
}
.panel input:focus { outline: none; border-color: var(--gold); }
.panel input.code { letter-spacing: 12px; text-align: center; font-size: 24px; font-weight: 600; }
.panel fieldset { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid #5a5248; color: var(--ivory); cursor: pointer; font-weight: 400; }
.chips input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--espresso); font-weight: 500; }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn.red { background: #8E3B3B; color: var(--ivory); }
.link { background: none; border: 0; color: var(--gold); font: inherit; font-size: 15px; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.row-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.err { color: #E8A0A0; font-size: 14px; margin: 0; min-height: 0; }
.err:empty { display: none; }
.help { width: 100%; background: var(--graphite); border-radius: 12px; padding: 14px 18px; text-align: left; }
.help summary { cursor: pointer; color: var(--ivory); font-weight: 500; }
.help p { color: var(--sand); font-size: 15px; line-height: 1.6; margin: 10px 0 0; }
.dots { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.dots li { color: var(--ivory); font-size: 15px; line-height: 1.55; }
.dots li::marker { color: var(--gold); }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--ivory) !important; font-weight: 400 !important; font-size: 15px !important; line-height: 1.55; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; margin-top: 2px; }
.acct .notice { text-align: left; font-size: 17px; }

/* Dashboard */
.dash h2.sec { align-self: flex-start; font-size: 18px; font-weight: 600; color: var(--gold); margin: 12px 0 -4px; }
.get-app h2 { font-size: 19px; font-weight: 600; margin: 0; }
.get-app p { color: var(--sand); margin: 0; line-height: 1.6; }
.list { gap: 0; padding: 8px 20px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #4a443c; }
.item:last-of-type { border-bottom: 0; }
.item[hidden] { display: none; }
.item b { display: block; color: var(--ivory); font-weight: 500; font-size: 15px; }
.item small { display: block; color: var(--sand); font-size: 13px; line-height: 1.5; margin-top: 2px; }
.list label.item { color: inherit; font-size: inherit; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { flex: none; width: 48px; height: 28px; border-radius: 999px; background: #5a5248; position: relative; transition: background .2s; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ivory); transition: transform .2s; }
.toggle input:checked + i { background: var(--gold); }
.toggle input:checked + i::after { transform: translateX(20px); }
.toggle input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 3px; }
.tick { color: var(--gold); font-size: 20px; font-weight: 600; }
.badge { flex: none; font-size: 12px; font-weight: 600; color: var(--espresso); background: var(--gold); border-radius: 999px; padding: 4px 10px; }
.hint { color: var(--taupe); font-size: 13px; line-height: 1.6; margin: 4px 0 12px; }
.blocked { list-style: none; margin: 0; padding: 0; }
.blocked li { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 4px 12px; color: var(--ivory); }
.actions { background: transparent; padding: 8px 0 0; }
.danger { text-align: left; background: var(--graphite); border-radius: 12px; padding: 14px 18px; }
.danger summary { cursor: pointer; color: #E8A0A0; font-weight: 500; }
.danger p { color: var(--sand); font-size: 14px; line-height: 1.6; }
.danger form { display: flex; flex-direction: column; gap: 10px; }
.danger label { font-size: 14px; color: var(--sand); }
.danger input { height: 52px; border-radius: 12px; border: 1px solid #5a5248; background: var(--espresso); color: var(--ivory); font: inherit; padding: 0 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ivory); color: var(--espresso); padding: 12px 20px; border-radius: 12px; font-size: 15px; font-weight: 500; box-shadow: 0 6px 24px rgba(0,0,0,.35); max-width: calc(100% - 32px); z-index: 10; }
.toast[hidden] { display: none; }
.sub.small { font-size: 14px; }
.btn.store { white-space: nowrap; }
@media (max-width: 520px) { .stores { flex-direction: column; width: 100%; max-width: 320px; } .btn.store { width: 100%; } }
