/* Main Street Refresh: a street at dusk. Awning green, brick, brass and warm window light. */
:root {
  --asphalt: #111713;     /* page base: street at dusk */
  --awning: #1d3a2a;      /* deep awning green */
  --awning-2: #24483a;
  --brick: #9a4431;       /* used sparingly */
  --brass: #d4a94f;       /* buttons, links */
  --glow: #f6c56b;        /* warm window light */
  --chalk: #f1efe8;       /* text on dark */
  --muted: #b6bdb4;
  --slate: #1b1f1d;       /* menu board */
  --line: rgba(241, 239, 232, .14);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--asphalt); color: var(--chalk); font: 400 1.0625rem/1.6 var(--body); }
img, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--glow); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .98; letter-spacing: .005em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h3 { font-size: 1.7rem; font-weight: 800; }
p { margin: 0; }
.section-lede { color: var(--muted); font-size: 1.15rem; max-width: 38rem; margin-top: 1rem; text-wrap: pretty; }

/* buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .8rem 1.4rem;
  background: var(--brass); color: #16130b; font: 600 1rem/1 var(--body); text-decoration: none; border: 0;
  border-radius: 999px; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { background: var(--glow); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-small { min-height: 2.4rem; padding: .5rem 1rem; font-size: .92rem; }
.text-link { color: var(--chalk); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass);
  text-decoration-thickness: 2px; }
.text-link:hover { color: var(--glow); }

/* header */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: max(.75rem, env(safe-area-inset-top)) clamp(1rem, 3vw, 2rem) .75rem; transition: background-color .3s ease, box-shadow .3s ease; }
.bar.is-solid { background: rgba(17, 23, 19, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line); }
.mark { display: inline-flex; align-items: center; gap: .55rem; color: var(--chalk); text-decoration: none;
  font: 800 1.35rem/1 var(--display); letter-spacing: .01em; }
.mark svg { width: 2rem; height: 2rem; color: var(--glow); }
.bar nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.6rem); }
.bar nav a:not(.btn) { color: var(--chalk); text-decoration: none; font-weight: 500; font-size: .98rem; }
.bar nav a:not(.btn):hover { color: var(--glow); }

/* hero: the refresh */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-media, .hero-scrim { position: absolute; inset: 0; z-index: -1; }
.hero-media video, .hero-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-still { opacity: 0; transition: opacity .6s ease; }
.hero.is-still .hero-still { opacity: 1; }
.hero.is-still video { visibility: hidden; }
.hero-scrim { background:
  linear-gradient(90deg, rgba(17,23,19,.82) 0%, rgba(17,23,19,.55) 30%, rgba(17,23,19,0) 58%),
  linear-gradient(180deg, rgba(17,23,19,.55) 0%, rgba(17,23,19,0) 22%),
  linear-gradient(0deg, rgba(17,23,19,.96) 0%, rgba(17,23,19,.72) 30%, rgba(17,23,19,0) 62%); }
.hero-copy { width: min(var(--wrap), 100% - 2.5rem); margin: 0 auto; padding-bottom: clamp(4.5rem, 10vh, 7rem); }
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 5.6rem); max-width: 14ch; font-weight: 900; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.lede { margin-top: 1.25rem; max-width: 34rem; font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #e4e2da; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.hero-caption { position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: 1.3rem; font-size: .88rem; color: var(--muted);
  opacity: 0; transition: opacity .8s ease; }
.hero.is-done .hero-caption, .hero.is-still .hero-caption { opacity: 1; }
.replay { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); display: inline-flex; gap: .45rem; align-items: center;
  background: rgba(17,23,19,.55); color: var(--chalk); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .9rem; font: 500 .85rem/1 var(--body); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.replay svg { width: 1rem; height: 1rem; }
.replay:hover { border-color: var(--brass); }

/* how it works */
.how { padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 6rem); }
.steps { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 3.6rem; border-top: 2px solid var(--awning-2); }
.steps li::before { content: counter(step); position: absolute; top: .9rem; left: 0; font: 900 2.2rem/1 var(--display); color: var(--glow); }
.steps h3 { margin-bottom: .6rem; }
.steps p { color: var(--muted); }

/* work */
.work { padding: clamp(4rem, 8vw, 6rem) 0; background: linear-gradient(180deg, var(--asphalt), #15211b 18%, #15211b 82%, var(--asphalt)); }
.case { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(3.5rem, 8vw, 6.5rem); }
.case.flip .devices { order: 2; }
.devices { position: relative; padding: 0 9% 12% 0; }
.case.flip .devices { padding: 0 0 12% 9%; }
.laptop { margin: 0; background: #0b0e0c; border-radius: 14px 14px 6px 6px; padding: 2.2% 2.2% 3.2%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.laptop img { border-radius: 4px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone { position: absolute; right: 0; bottom: 0; width: 27%; margin: 0; background: #0b0e0c; border-radius: 22px; padding: 2.4%;
  box-shadow: 0 24px 50px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); }
.case.flip .phone { right: auto; left: 0; }
.phone img { border-radius: 16px; width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }
.kind { color: var(--glow); font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
.case-copy h3 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: .9rem; }
.case-copy p:not(.kind) { color: var(--muted); max-width: 30rem; margin-bottom: 1.2rem; }

/* basics */
.basics { padding: clamp(5rem, 10vw, 8rem) 0; }
.basics-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.checks li { position: relative; padding-left: 2.2rem; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--awning-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23f6c56b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; }
.checks strong { color: var(--chalk); font-weight: 600; }

/* pricing: a cafe menu board */
.pricing { padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 10vw, 8rem); }
.board { position: relative; max-width: 860px; margin-inline: auto; padding: clamp(2rem, 5vw, 3.8rem);
  background: var(--slate); border-radius: 10px; border: 12px solid #5a3b27;
  box-shadow: inset 0 0 80px rgba(0,0,0,.55), 0 30px 60px -25px rgba(0,0,0,.8);
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.2px), radial-gradient(rgba(255,255,255,.025) 1px, transparent 1.2px);
  background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px; }
.board h2 { text-align: center; font-weight: 900; color: #f4f1e6; text-shadow: 0 0 1px rgba(255,255,255,.5); }
.board-note { text-align: center; color: var(--muted); margin-top: .6rem; }
.menu { margin: clamp(2rem, 4vw, 3rem) 0 2.2rem; display: grid; gap: 1.8rem; }
.item { display: grid; grid-template-columns: auto 1fr auto; column-gap: .8rem; align-items: baseline; }
.item dt { font: 800 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--display); color: #f4f1e6; }
.item::after { content: ""; grid-column: 2; grid-row: 1; border-bottom: 3px dotted rgba(244,241,230,.35); transform: translateY(-.35em); }
.item .price { grid-column: 3; grid-row: 1; margin: 0; font: 900 clamp(1.6rem, 3.2vw, 2.3rem)/1 var(--display); color: var(--glow); }
.item .price span { font-size: .6em; color: var(--muted); }
.item .desc { grid-column: 1 / -1; margin: .45rem 0 0; color: var(--muted); max-width: 40rem; }
.btn-chalk { display: flex; width: fit-content; margin-inline: auto; }

/* founder note */
.note { padding: clamp(4rem, 8vw, 6rem) 0; background: var(--awning); }
.note-inner { max-width: 760px; }
.note h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.2rem; }
.note p { font-size: 1.2rem; color: #dfe6df; text-wrap: pretty; }
.note .sign { margin-top: 1.2rem; font: 800 1.4rem/1 var(--display); color: var(--glow); }

/* faq */
.faq { padding: clamp(5rem, 10vw, 8rem) 0; }
.faq-inner { max-width: 800px; }
.faq h2 { margin-bottom: 2rem; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative; font-weight: 600; font-size: 1.12rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem; border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { color: var(--muted); padding: 0 0 1.3rem; max-width: 42rem; }

/* call to action */
.cta { padding: clamp(5rem, 10vw, 8rem) 0; background:
  radial-gradient(ellipse 70% 60% at 85% 20%, rgba(246,197,107,.13), transparent 70%), #15211b; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.direct { margin-top: 1.4rem; color: var(--muted); }
.ask { display: grid; gap: 1.1rem; background: rgba(17,23,19,.6); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.ask label { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; }
.opt { color: var(--muted); font-weight: 400; }
.ask input { font: inherit; font-weight: 400; color: var(--chalk); background: #0e1310; border: 1px solid rgba(241,239,232,.2);
  border-radius: 10px; padding: .8rem .9rem; min-height: 3rem; }
.ask input:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: transparent; }
.ask input::placeholder { color: #6f776f; }
.ask .btn { margin-top: .4rem; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-note.err { color: #f0a58f; }

/* footer */
.foot { padding: 2.5rem 0 max(2.5rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: .6rem 2rem; align-items: baseline; justify-content: space-between; }
.mark.small { font-size: 1.2rem; }

/* phones and small tablets */
@media (max-width: 900px) {
  .steps, .basics-grid, .cta-inner { grid-template-columns: 1fr; }
  .case, .case.flip { grid-template-columns: 1fr; gap: 1.8rem; }
  .case.flip .devices { order: 0; padding: 0 9% 12% 0; }
  .case.flip .phone { left: auto; right: 0; }
}
@media (max-width: 640px) {
  .bar nav a:not(.btn) { display: none; }
  .mark span { font-size: 1.15rem; }
  .hero { min-height: 0; display: block; }
  .hero-media { position: relative; inset: auto; height: 58svh; min-height: 330px; z-index: 0; }
  .hero-media video, .hero-still { object-position: 50% 40%; }
  .hero-scrim { inset: 0 0 auto; height: 58svh; min-height: 330px; z-index: 1; background:
    linear-gradient(180deg, rgba(17,23,19,.6) 0%, rgba(17,23,19,0) 25%, rgba(17,23,19,0) 60%, var(--asphalt) 100%); }
  .hero-copy { position: relative; z-index: 2; margin-top: -3.2rem; padding-bottom: 3.5rem; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.2rem); max-width: none; }
  .lede { font-size: 1.05rem; }
  .hero-caption { display: none; }
  .replay { z-index: 3; left: auto; right: .9rem; transform: none; top: calc(max(58svh, 330px) - 5.4rem); bottom: auto; }
  .board { border-width: 8px; }
  .item { grid-template-columns: 1fr auto; }
  .item::after { display: none; }
  .item .price { grid-column: 2; }
}
