/* the pub page (findchalk.com) */
:root {
  --cream: #F8F3E7; --cream-light: #FCF8ED; --cream-shade: #EDE5D8; --pressed: #E2D8C8;
  --ink: #1C1814; --soft: #6E6358; --clay: #845141; --edge: rgba(28,24,20,0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--cream); color: var(--ink); font-family: Figtree, "Helvetica Neue", Arial, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
/* the hero stars hang off the phone; on narrower laptops they're trimmed at the screen edge, never a sideways scroll */
html, body { overflow-x: clip; }
a { color: inherit; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.wordmark { font-family: Chango; color: var(--clay); font-size: 32px; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; }
.btn.dark { background: var(--ink); color: var(--cream); }
.btn.line { border-color: var(--edge); }
.btn.small { height: 40px; padding: 0 18px; font-size: 15px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 48px 0 96px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--clay); margin-bottom: 18px; }
h1 { font-family: Bric; font-size: 64px; line-height: 1.02; letter-spacing: -1px; }
.lede { font-size: 20px; color: var(--soft); margin-top: 22px; max-width: 30ch; }
.free { font-weight: 700; color: var(--ink); }
.ctas { display: flex; gap: 12px; margin-top: 34px; }
.note { margin-top: 22px; font-size: 15px; color: var(--soft); display: flex; gap: 10px; align-items: flex-start; }
.note b { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); flex: none; margin-top: 8px; }
.phone-zone { position: relative; display: flex; justify-content: flex-end; }
.phone { width: 300px; border-radius: 46px; background: var(--ink); padding: 10px; box-shadow: 0 30px 60px -20px rgba(28,24,20,0.35); }
.phone img { display: block; width: 100%; border-radius: 37px; }
.star { position: absolute; transform: rotate(var(--r, 0deg)); }
/* stars sit just off the phone and the card, never touching them */
.s1 { top: -14px; right: -44px; width: 32px; --r: 10deg; }
.s2 { top: 35%; right: 326px; width: 36px; --r: -16deg; }
.s3 { bottom: 6%; right: -74px; width: 54px; --r: 14deg; }
.s4 { top: -24px; right: -14px; }

/* sections */
section { padding: 88px 0; }
.band { background: var(--cream-light); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
h2 { font-family: Bric; font-size: 44px; line-height: 1.08; letter-spacing: -0.5px; }
.sub { color: var(--soft); font-size: 19px; margin-top: 12px; max-width: 46ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.step { background: var(--cream); border: 1px solid var(--edge); border-radius: 24px; padding: 28px; }
.num { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 20px; position: relative; }
.num::after { content: ""; position: absolute; left: -5px; top: -3px; width: 50px; height: 46px; background: url(/assets/img/ring.png) center/100% 100% no-repeat; }
.step:nth-child(2) .num::after { transform: rotate(18deg); }
.step:nth-child(3) .num::after { transform: rotate(-14deg); }
.step h3 { font-family: Bric; font-size: 24px; line-height: 1.15; }
.step p { color: var(--soft); margin-top: 8px; }

/* what people see */
.see { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; color: var(--soft); }
.ticks li b { color: var(--ink); font-weight: 700; }
.ticks li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--pressed) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231C1814' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; flex: none; margin-top: 2px; }
.card { background: var(--cream-light); border-radius: 28px; padding: 24px; box-shadow: 0 18px 40px -18px rgba(28,24,20,0.25); max-width: 390px; margin: 0 auto; position: relative; }
.card .photo { height: 190px; border-radius: 18px; background: #845141 url(/assets/img/music-photo.jpg) center/cover no-repeat; position: relative; }
.card .heart { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(252,248,237,0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z' fill='none' stroke='%23F2ABD4' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }
.card .area { font-weight: 700; font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--clay); margin-top: 22px; }
.card .name { font-family: Bric; font-size: 28px; line-height: 1.1; margin-top: 6px; }
.card .pub { color: var(--clay); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; }
.card .meta { font-weight: 700; font-size: 15px; margin-top: 8px; }
.card .meta .on { color: var(--clay); font-weight: 600; }
.card .tags { display: flex; gap: 8px; margin-top: 14px; }
.card .tags span { background: var(--cream-shade); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 14px; }
.card .desc { color: var(--ink); font-size: 15px; margin-top: 14px; }
.card .actions { display: flex; gap: 10px; margin-top: 20px; align-items: center; }
.card .round { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--edge); display: flex; align-items: center; justify-content: center; flex: none; }
.card .go { flex: 1; height: 52px; border-radius: 999px; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center; font-weight: 700; }


/* three real screens in a row; on a phone they swipe sideways inside their own strip */
.see-head { max-width: 560px; }
.ticks-grid { grid-template-columns: 1fr 1fr; gap: 14px 40px; max-width: 900px; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.screens figure { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.screens .phone { width: 100%; max-width: 280px; }
.screens figcaption { text-align: center; color: var(--soft); font-size: 15px; max-width: 240px; }
.screens figcaption b { display: block; color: var(--ink); font-family: Bric; font-size: 22px; font-weight: 400; margin-bottom: 2px; }


/* ---- motion: gentle, once, and off for anyone who's asked for less ---- */
html { scroll-behavior: smooth; }
section, #how { scroll-margin-top: 24px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.4) rotate(var(--r, 0deg)); } 70% { opacity: 1; transform: scale(1.12) rotate(var(--r, 0deg)); } 100% { opacity: 1; transform: scale(1) rotate(var(--r, 0deg)); } }
.rise { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; } .d5 { animation-delay: .2s; }
.pop { animation: pop .5s cubic-bezier(.3,.8,.3,1.2) both; }
.pop.p1 { animation-delay: .55s; } .pop.p2 { animation-delay: .68s; } .pop.p3 { animation-delay: .8s; }
.btn, .review a, .pill, .edit { transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.dark:hover { background: #3A332C; }
.btn.line:hover, .review a:hover { border-color: rgba(28,24,20,0.3); }
.screens .phone { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.screens .phone:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -24px rgba(28,24,20,0.45); }
.step, .q { transition: transform .3s ease; }
/* sections settle in as they scroll into view, where the browser supports it (otherwise they're simply there) */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .pop, .reveal { animation: none !important; }
  .btn:hover, .screens .phone:hover { transform: none; }
}

/* free */
.free-band { text-align: center; }
.free-band h2 { font-size: 56px; }
.free-band .sub { margin: 30px auto 0; }
.ringed { position: relative; display: inline-block; margin-left: .85em; padding: 0 4px; }
.ringed img { position: absolute; left: -18%; top: -34%; width: 136%; height: 168%; pointer-events: none; }

/* questions */
.qs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; margin-top: 40px; }
.q h3 { font-weight: 700; font-size: 18px; }
.q p { color: var(--soft); margin-top: 6px; }

/* last call */
.last { background: var(--ink); color: var(--cream); border-radius: 32px; padding: 64px; display: flex; justify-content: space-between; align-items: center; gap: 32px; position: relative; overflow: hidden; }
.last h2 { font-size: 40px; max-width: 18ch; }
/* the star sits just off the question mark, like the stars on the app's titles */
.nowrap { white-space: nowrap; }
.h2-star { display: inline-block; width: 34px; margin-left: 10px; vertical-align: top; transform: translateY(-2px) rotate(-12deg); }
/* bigger than the other buttons: the last thing on the page */
.last .btn { background: var(--cream); color: var(--ink); flex: none; height: 60px; padding: 0 36px; font-size: 18px; }
footer { padding: 48px 0 56px; display: flex; justify-content: space-between; color: var(--soft); font-size: 15px; }
footer div { display: flex; gap: 24px; }

/* phones */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .top { height: 68px; }
  .wordmark { font-size: 26px; }
  .top nav a.hide { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 24px 0 64px; }
  h1 { font-size: 42px; }
  .lede { font-size: 18px; }
  .ctas { flex-direction: column; }
  .ctas .btn { width: 100%; }
  .phone { width: 250px; }
  section { padding: 64px 0; }
  h2 { font-size: 32px; }
  .steps, .see, .qs, .ticks-grid { grid-template-columns: 1fr; }
  /* room above so a lifted screen is never cut off; dots instead of a scroll bar */
  .screens { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 24px -20px 0; padding: 16px 20px 8px; scrollbar-width: none; }
  .screens::-webkit-scrollbar { display: none; }
  .screens figure { flex: 0 0 72%; scroll-snap-align: center; }
  /* one line, with the ring round "always." as on a laptop */
  .free-band h2 { font-size: clamp(24px, 7.4vw, 36px); line-height: 1.25; white-space: nowrap; }
  .ringed { margin-left: .6em; }
  .ringed img { left: -12%; width: 124%; }
  .last { padding: 40px 28px; flex-direction: column; align-items: flex-start; border-radius: 28px; }
  .last h2 { font-size: 30px; }
  .last .btn { width: 100%; }
  footer { flex-direction: column; gap: 16px; }
  .phone-zone { justify-content: center; }
  .s1 { top: -6px; right: calc(50% - 160px); width: 26px; }
  .s2 { top: 38%; right: auto; left: calc(50% - 166px); width: 30px; }
  .s3 { bottom: 8%; right: calc(50% - 172px); width: 42px; }
  .s4 { top: -22px; right: -4px; width: 34px !important; }
  .h2-star { width: 26px; margin-left: 8px; transform: translateY(-1px) rotate(-12deg); }
  .last { padding-top: 48px; }
}

/* ---- not a pub? the launch list ---- */
/* for people who want things to do, not pubs: in the top bar on a laptop, a line in the hero on a phone */
/* the top bar: two links, centred over the phone below them (it's 300px wide, at the right edge) */
.top nav { width: 300px; justify-content: center; }
.top nav a { white-space: nowrap; color: var(--ink); }
.top nav { font-size: 16px; }
.top nav a { font-weight: 700; }
.top nav a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
/* the same gap above "launching in london soon" as above the two buttons */
.hero .note { margin-top: 34px; }
.launch { margin-top: 28px; background: var(--cream-light); border: 1px solid var(--edge); border-radius: 32px; padding: 48px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; scroll-margin-top: 24px; }
.launch h2 { font-size: 36px; }
.launch .sub { margin-top: 10px; }
.launch-form { display: flex; flex-wrap: wrap; gap: 10px; }
.launch-form input[type=email] { flex: 1 1 220px; min-width: 0; height: 52px; border-radius: 14px; border: 0; background: var(--cream-shade); padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.launch-form input[type=email]:focus { background: var(--pressed); }
.launch-form input[type=email]:focus-visible { box-shadow: 0 0 0 2px rgba(132,81,65,0.35); }
.launch-form .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; }
.launch-form .btn[disabled] { opacity: .6; cursor: default; }
.launch-small { flex-basis: 100%; font-size: 14px; color: var(--soft); }
.launch-small:empty { display: none; }
.launch-form .is-gone { display: none; }
.launch-done { flex-basis: 100%; }
.launch.joined { align-items: start; }
.launch-done .t { font-family: Bric; font-weight: 700; font-size: 36px; line-height: 1.08; letter-spacing: -0.5px; color: var(--ink); }
.launch-done .s { font-family: Figtree, "Helvetica Neue", Arial, sans-serif; font-size: 19px; line-height: 1.55; color: var(--soft); margin-top: 10px; }
@media (max-width: 820px) { .launch-done .t { font-size: 28px; } .launch-done .s { font-size: 16px; } }
.launch .sub a { color: var(--soft); text-underline-offset: 3px; }
.launch-done .again { display: block; margin-top: 10px; font-family: Figtree, "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: var(--soft); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.launch-small a { color: var(--soft); text-underline-offset: 3px; }
.launch-small.bad { color: #A72628; }
.launch-done { font-family: Bric; font-size: 24px; line-height: 1.2; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
@media (max-width: 820px) {
  /* links sit on the line "Chalk." sits on */
  .top { align-items: baseline; padding-top: 22px; height: auto; }
  .top nav a { font-weight: 700; }
  .top nav { width: auto; gap: 16px; font-size: 14px; }
  /* the app screen comes straight after the heading, with room round it */
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero > div:first-child { display: contents; }
  /* phones: heading, then the two buttons side by side, then the app screen */
  .hero .eyebrow { order: 1; font-size: 15px; letter-spacing: 1.8px; } .hero h1 { order: 2; }
  .hero .ctas { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .hero .ctas .btn { width: 100%; height: 50px; padding: 0 10px; }
  .hero .ctas .btn.line { border-color: rgba(28,24,20,0.22); }
  .hero .phone-zone { order: 4; margin: 64px 0 72px; }
  .hero { padding-top: 52px; }
  .hero .lede { order: 5; max-width: none; } .hero .note { order: 6; }
  /* "here for the events?" is laptop only: on phones pubs kept tapping it by mistake */
  .top nav .for-events { display: none; }
  .phone { width: 210px; }
  .launch { grid-template-columns: 1fr; padding: 32px 24px; gap: 22px; border-radius: 28px; }
  .launch h2 { font-size: 28px; }
  .launch-form .btn { flex: 1 1 100%; }
}

/* the swipe dots under the three screens (phones only) */
.screen-dots { display: none; }
@media (max-width: 820px) {
  .screen-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
  .screen-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--pressed); transition: width .25s ease, background-color .25s ease; }
  .screen-dots i.on { width: 22px; background: var(--clay); }
}
