/* Windy Hill Today website: the app's home page, the sponsor site, and the admin. One light look, like the app. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

  /* Layout: a slim preview bar picks the screen; below it each screen is a full page design in the app's own brand. One light look, like the app. */
  :root {
    color-scheme: light;
    --bg: #f1f4fb; --surface: #ffffff; --ink: #0b1a4a; --muted: #4a5682; --line: #dfe5f3;
    --blue: #003c9a; --navy: #00256b; --blue-soft: #e6ecfa; --on-blue: #ffffff; --on-blue-muted: #dbe5ff;
    --lime: #a6cc1a; --lime-soft: #eef6cf; --on-lime-soft: #3d5200; --star: #d3f023;
    --warn-soft: #fde9cf; --on-warn-soft: #8a3b00;
    --display: 'Poppins', 'Avenir Next', 'Segoe UI', sans-serif;
    --body: 'Manrope', 'Avenir Next', 'Segoe UI', sans-serif;
    --gutter-l: max(20px, env(safe-area-inset-left, 0px)); --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  }
  body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; font-weight: 500; }
    h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; margin: 0; }
  h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.08; }
  h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; }
  h3 { font-size: 18px; line-height: 1.3; }
  p { margin: 0; max-width: 60ch; }
  a { color: inherit; }
  .muted { color: var(--muted); font-size: 15px; }
  .inner { max-width: 1120px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
  button:focus-visible, input:focus-visible, textarea:focus-visible, .drop:focus-visible, a:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

  /* Site chrome */
  .top { background: var(--surface); border-bottom: 1px solid var(--line); }
  .top .inner { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-block: 14px; }
  .brand { display: flex; align-items: center; gap: 12px; font: 700 18px var(--display); text-decoration: none; }
  .brand img { width: 40px; height: 40px; border-radius: 11px; }
  .brand small { font: 700 12px var(--body); background: var(--blue-soft); color: var(--blue); border-radius: 999px; padding: 3px 10px; }
  .nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; font: 700 15px var(--body); }
  .nav span { color: var(--muted); font-weight: 600; }
  .nav .cur { color: var(--blue); border-bottom: 2px solid var(--lime); }
  .nav button.link { font: inherit; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
  .top.dark { background: var(--navy); border-bottom: 0; color: #fff; }
  .top.dark .brand small { background: var(--lime); color: var(--ink); }
  .top.dark .brand img, .door .brand img { outline: 2px solid rgba(255,255,255,.4); }
  .top.dark .nav span { color: var(--on-blue-muted); }
  .top.dark .nav .cur { color: #fff; }
  .foot { background: var(--navy); color: var(--on-blue-muted); font-size: 14px; }
  .foot .inner { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; padding-block: 28px; }
  .foot b { color: #fff; font: 700 16px var(--display); display: block; margin-bottom: 4px; }
  .foot p { max-width: 52ch; }
  .foot .links { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 700; color: #fff; }

  .btn { font: 700 16px var(--body); min-height: 52px; border-radius: 26px; border: 0; padding: 0 26px; cursor: pointer; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
  .btn.lime { background: var(--lime); color: var(--ink); }
  .btn.quiet { background: var(--blue-soft); color: var(--blue); }
  .btn.small { min-height: 42px; font-size: 14px; padding-inline: 18px; }
  .btn.wide { width: 100%; }
  .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
  .stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .pill { display: inline-block; border-radius: 999px; padding: 4px 12px; font: 700 13px var(--body); background: var(--lime-soft); color: var(--on-lime-soft); white-space: nowrap; }
  .pill.review { background: var(--warn-soft); color: var(--on-warn-soft); }
  .pill.blue { background: var(--blue-soft); color: var(--blue); }
  .card { background: var(--surface); border-radius: 24px; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }

  /* Hero and split layouts */
  .hero { background: var(--blue); color: #fff; overflow: hidden; }
  .hero .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: clamp(36px, 6vw, 72px) 0; }
  .hero .copy { display: flex; flex-direction: column; gap: 18px; padding-bottom: clamp(36px, 6vw, 72px); }
  .hero p { color: var(--on-blue-muted); font-size: 18px; }
  .hero .facts { display: flex; flex-wrap: wrap; gap: 8px; }
  .hero .facts span { background: rgba(255,255,255,.14); border-radius: 999px; padding: 5px 14px; font: 700 14px var(--body); }
  .hero .show { display: flex; justify-content: center; align-self: end; }
  .band { padding-block: clamp(40px, 6vw, 72px); }
  .band.white { background: var(--surface); }
  .band .inner { display: flex; flex-direction: column; gap: 28px; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
  .split.flip > :first-child { order: 2; }
  .split .art { background: var(--bg); border-radius: 28px; padding: clamp(18px, 4vw, 36px); display: flex; flex-direction: column; gap: 10px; }
  .band.white .split .art { background: var(--bg); }
  ul.plain { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
  ul.plain li { display: flex; gap: 12px; align-items: flex-start; }
  ul.plain li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); margin-top: 8px; }
  .pricing { background: var(--blue); color: #fff; border-radius: 32px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; overflow: hidden; }
  .pricing .copy { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
  .pricing .amount { font: 700 clamp(44px, 6vw, 64px)/1 var(--display); }
  .pricing .amount small { font: 600 18px var(--body); color: var(--on-blue-muted); }
  .pricing p, .pricing li { color: var(--on-blue-muted); }
  .pricing img { justify-self: center; width: min(240px, 70%); height: auto; display: block; }
  @media (max-width: 820px) {
    .hero .inner, .split, .pricing { grid-template-columns: minmax(0, 1fr); }
    .split.flip > :first-child { order: 0; }
    .hero .copy { padding-bottom: 8px; }
  }

  /* Sign-in pages */
  .door { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 620px; }
  .door .side { background: var(--blue); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(24px, 5vw, 56px) var(--gutter-r) 0 var(--gutter-l); overflow: hidden; }
  .door .side.navy { background: var(--navy); }
  .door .side p { color: var(--on-blue-muted); font-size: 18px; }
  .door .side img.wiz { width: min(260px, 60%); height: auto; align-self: center; display: block; }
  .door .form { background: var(--surface); display: flex; align-items: center; padding: clamp(28px, 5vw, 56px) var(--gutter-r) clamp(28px, 5vw, 56px) var(--gutter-l); }
  .door .form > div { width: 100%; max-width: 420px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; }
  @media (max-width: 820px) { .door { grid-template-columns: minmax(0, 1fr); min-height: 0; } .door .side img.wiz { width: 160px; } }

  /* Forms */
  label { font: 700 14px var(--body); display: flex; justify-content: space-between; gap: 12px; }
  label span { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
  input[type="text"], input[type="email"], input[type="password"], textarea { width: 100%; box-sizing: border-box; font: 600 16px var(--body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; }
  input:focus, textarea:focus { border-color: var(--blue); background: #fff; outline: none; }
  textarea { resize: vertical; min-height: 88px; }
  .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  @media (max-width: 520px) { .two { grid-template-columns: minmax(0, 1fr); } }
  .pw { position: relative; }
  .pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 700 13px var(--body); color: var(--blue); background: var(--blue-soft); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
  .drop { display: flex; align-items: center; gap: 14px; padding: 14px; border: 2px dashed #b9c4e2; border-radius: 18px; cursor: pointer; background: var(--bg); }
  .drop.over { border-color: var(--blue); background: var(--blue-soft); }
  .drop img { width: 60px; height: 60px; border-radius: 17px; object-fit: cover; background: #fff; flex: none; }
  .drop b { display: block; font: 700 15px var(--body); }
  .drop span { font-size: 13px; color: var(--muted); font-weight: 600; }
  .stripe { border: 1.5px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
  .secure { font: 700 13px var(--body); color: var(--muted); }

  /* Account pages */
  .work { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px); }
  .work .inner { display: flex; flex-direction: column; gap: 22px; }
  .cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  @media (max-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr); } }
  .list { display: flex; flex-direction: column; }
  .list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
  .list > div:last-child { border-bottom: 0; }
  .list span { color: var(--muted); font-variant-numeric: tabular-nums; }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stats div { background: var(--bg); border-radius: 16px; padding: 12px 14px; font: 600 13px var(--body); color: var(--muted); }
  .card .stats div { background: var(--bg); }
  .stats b { display: block; font: 700 26px/1.2 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
  .change { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  @media (max-width: 640px) { .change { grid-template-columns: minmax(0, 1fr); } .stats { grid-template-columns: minmax(0, 1fr); } }
  .cap { font: 700 13px var(--body); color: var(--muted); margin-bottom: 6px; }
  .tablewrap { overflow-x: auto; }
  table { border-collapse: collapse; width: 100%; min-width: 560px; font-weight: 600; }
  th { text-align: left; font: 700 13px var(--body); color: var(--muted); padding: 0 12px 10px 0; }
  td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
  td .who { display: flex; align-items: center; gap: 10px; }
  td img { width: 36px; height: 36px; border-radius: 10px; outline: 1px solid var(--line); outline-offset: -1px; background: #fff; }

  /* Pieces of the app, drawn the way the app draws them */
  .a-card { background: #fff; border-radius: 22px; padding: 13px 15px; display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--ink); }
  .art .a-card, .preview .a-card { box-shadow: 0 1px 0 var(--line); }
  .a-top { display: flex; align-items: center; gap: 12px; }
  .a-top > div { flex: 1; min-width: 0; }
  .a-top img { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; background: #fff; outline: 1px solid var(--line); outline-offset: -1px; flex: none; }
  .a-top img.big { width: 56px; height: 56px; border-radius: 16px; }
  .a-name { font: 700 15px/20px var(--body); overflow-wrap: anywhere; }
  .a-tag { font: 600 13px/18px var(--body); color: var(--muted); overflow-wrap: anywhere; }
  .a-pill { border-radius: 999px; padding: 3px 10px; font: 700 13px/18px var(--body); background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
  .a-offer { align-self: flex-start; border-radius: 999px; padding: 3px 10px; font: 700 13px/18px var(--body); background: var(--lime-soft); color: var(--on-lime-soft); overflow-wrap: anywhere; }
  .preview { background: var(--bg); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
  .preview h4, .art h4 { margin: 6px 4px 0; font: 700 13px var(--body); color: var(--muted); }

  /* App home */
  .band:not(.white) .split .art { background: var(--surface); }
  .nav .btn { color: #fff; }
  .hero .show.duo { align-items: flex-end; gap: 0; }
  .hero .show.duo > img { width: min(190px, 34%); height: auto; margin-left: -28px; position: relative; }
  .stores { display: flex; flex-wrap: wrap; gap: 10px; }
  .store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 0 22px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; font: 700 17px/1.15 var(--display); }
  .store small { font: 600 11px var(--body); color: var(--on-blue-muted); }
  .hero .store { background: #fff; color: var(--ink); } .hero .store small { color: var(--muted); }
  .asks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .asks div { background: var(--bg); border-radius: 22px; padding: 20px; font: 700 20px/1.25 var(--display); }
  .asks div span { display: block; margin-top: 8px; font: 600 14px/1.45 var(--body); color: var(--muted); }
  @media (max-width: 820px) { .asks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 460px) { .asks { grid-template-columns: minmax(0, 1fr); } }
  .split .art.center { align-items: center; }
  .logos { display: flex; flex-wrap: wrap; gap: 12px; }
  .logos img { width: 72px; height: 72px; border-radius: 20px; background: #fff; outline: 1px solid var(--line); outline-offset: -1px; }
  .cta { background: var(--blue); color: #fff; border-radius: 32px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; overflow: hidden; }
  .cta .copy { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
  .cta p { color: var(--on-blue-muted); font-size: 18px; }
  .cta img { justify-self: center; width: min(220px, 60%); height: auto; display: block; margin-top: 16px; }
  @media (max-width: 820px) { .cta { grid-template-columns: minmax(0, 1fr); } }
  .phone { width: 300px; max-width: 100%; box-sizing: border-box; border: 9px solid var(--ink); border-bottom: 0; border-radius: 44px 44px 0 0; background: var(--bg); color: var(--ink); padding: 22px 12px 18px; display: flex; flex-direction: column; gap: 9px; }
  .phone .t { font: 700 27px/32px var(--display); }
  .phone .s { font: 600 12px/16px var(--body); color: var(--muted); }
  .phone .day { position: relative; border-radius: 20px; background: var(--blue); color: #fff; padding: 14px 0 14px 14px; min-height: 118px; overflow: hidden; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; justify-content: center; }
  .phone .day b { font: 700 23px/27px var(--display); }
  .phone .day i { font: 700 12px/16px var(--display); font-style: normal; background: var(--star); color: var(--ink); border-radius: 999px; padding: 3px 10px; }
  .phone .day span { font: 600 12px/16px var(--body); width: 60%; }
  .phone .day img { position: absolute; right: -6px; top: 6px; width: 104px; height: auto; }
  .phone .a-card { border-radius: 18px; padding: 10px 12px; outline: 3px solid var(--lime); }
  .phone .a-top img { width: 38px; height: 38px; border-radius: 11px; }
  .phone .a-name { font-size: 13px; line-height: 17px; } .phone .a-tag { font-size: 11.5px; line-height: 15px; } .phone .a-pill { font-size: 11px; padding: 2px 8px; }
  .phone .lunch { background: #fff; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
  .phone .lunch i { align-self: flex-start; font: 700 11px/15px var(--body); font-style: normal; background: var(--lime); border-radius: 999px; padding: 2px 9px; }
  .phone .lunch b { font: 700 21px/26px var(--display); }

  .brand.light { color: #fff; } .brand.light small { background: var(--lime); color: var(--ink); } .brand.light img { outline: 2px solid rgba(255,255,255,.4); }
  .foot a { color: #fff; text-decoration: none; } .nav a { text-decoration: none; }
  .notice { border-radius: 18px; padding: 14px 16px; font-weight: 600; background: var(--lime-soft); color: var(--on-lime-soft); }
  .notice.warn { background: var(--warn-soft); color: var(--on-warn-soft); }
  .error { color: #a12000; font-weight: 700; font-size: 14px; }
  button[disabled], .btn[disabled] { opacity: .5; cursor: default; }
  .btn.danger { background: var(--warn-soft); color: var(--on-warn-soft); }
  input[type="date"], input[type="number"] { width: 100%; font: 600 16px var(--body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }

  /* Phones with some depth: a dark body, a lit edge, and a long soft shadow. */
  .device { --w: 270px; width: var(--w); max-width: 100%; flex: none; position: relative; border-radius: 46px; padding: 10px; background: linear-gradient(145deg, #33448a 0%, #0b1a4a 38%, #040b26 100%); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22), inset 0 0 0 4px #060e2e, 0 60px 70px -34px rgba(3,14,52,.6), 0 26px 30px -18px rgba(3,14,52,.45); }
  .device::before { content: ""; position: absolute; z-index: 2; top: 19px; left: 50%; width: 30%; height: 19px; transform: translateX(-50%); border-radius: 12px; background: #040b26; }
  .device::after { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 13%; border-radius: 0 2px 2px 0; background: #0b1a4a; }
  .device .screen { border-radius: 37px; overflow: hidden; background: #f1f4fb; padding-top: 34px; }
  .device img { display: block; width: 100%; aspect-ratio: 9 / 16.4; object-fit: cover; object-position: top; }
  .tilt-l { transform: perspective(1500px) rotateY(17deg) rotateX(5deg) rotateZ(-2deg); }
  .tilt-r { transform: perspective(1500px) rotateY(-17deg) rotateX(5deg) rotateZ(2deg); }
  .stage { position: relative; display: flex; justify-content: center; align-items: center; padding: 34px 0; min-width: 0; }
  .stage::before { content: ""; position: absolute; inset: 9% 10%; border-radius: 56px; background: var(--blue-soft); transform: rotate(-5deg); }
  .stage.lime::before { background: var(--lime-soft); transform: rotate(5deg); }
  .float { position: absolute; z-index: 3; background: #fff; color: var(--ink); border-radius: 18px; padding: 10px 14px; font: 700 14px/1.3 var(--body); box-shadow: 0 22px 34px -16px rgba(3,14,52,.5), 0 2px 6px rgba(3,14,52,.08); display: flex; align-items: center; gap: 8px; max-width: 220px; }
  .float i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }
  .float small { display: block; font-weight: 600; color: var(--muted); }
  .hero .show.trio { position: relative; align-items: flex-end; margin-bottom: -150px; padding-top: 10px; }
  .hero .show.trio .device:first-child { --w: 230px; margin-right: -70px; margin-bottom: 40px; filter: brightness(.94); }
  .hero .show.trio .device + .device { z-index: 1; }
  .hero .show.trio > img { position: absolute; z-index: 2; right: -4%; bottom: 150px; width: 170px; height: auto; filter: drop-shadow(0 24px 22px rgba(3,14,52,.45)); }
  .hero .float.a { left: -2%; top: 16%; } .hero .float.b { right: 0; top: 6%; }
  @media (max-width: 820px) {
    .device { --w: 220px; } .hero .show.trio .device:first-child { --w: 180px; margin-right: -60px; }
    .hero .show.trio > img { width: 120px; right: 0; } .hero .float.a { left: 0; } .float { font-size: 13px; padding: 8px 12px; }
  }
  .cta img, .pricing img { filter: drop-shadow(0 24px 22px rgba(3,14,52,.4)); }
  .card { box-shadow: 0 1px 0 var(--line), 0 24px 40px -32px rgba(3,14,52,.35); }
  .store.soon { opacity: .96; }

  /* Admin */
  .seg { display: flex; flex-wrap: wrap; gap: 6px; }
  .seg button { font: 700 14px var(--body); border: 0; border-radius: 999px; padding: 9px 16px; background: var(--bg); color: var(--ink); cursor: pointer; }
  .seg button[aria-pressed="true"], .tabs2 button[aria-selected="true"] { background: var(--blue); color: #fff; }
  .tabs2 { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
  .tabs2 button { font: 700 15px var(--body); border: 0; background: transparent; color: var(--on-blue-muted); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
  .tabs2 button[aria-selected="true"] { background: var(--lime); color: var(--ink); }
  .item { background: var(--surface); border-radius: 16px; padding: 12px 14px; margin: 0 0 8px; }
  .item b { display: block; } .item small { color: var(--muted); }
  .copy-box { font: 600 13px ui-monospace, Menlo, monospace; background: var(--bg); border-radius: 12px; padding: 10px 12px; overflow-wrap: anywhere; }
  .store.on-blue { background: #fff; color: var(--ink); } .store.on-blue small { color: var(--muted); }
  .nav form button.link { color: var(--muted); font-weight: 600; }
  html, body { overflow-x: clip; }
  .band, .hero { overflow: hidden; }
  .nav .btn.quiet { color: var(--blue); }
  .badges { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
  .badges .row { gap: 12px; }
  .badges img { display: block; height: 52px; width: auto; }
  .badges .soon { font: 700 14px var(--body); color: var(--muted); }
  .badges .soon.on-blue { color: var(--on-blue-muted); }
  @media (max-width: 420px) { .badges img { height: 44px; } }

  /* Phone menu */
  .menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 23px; background: var(--blue-soft); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
  .menu-btn span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--blue); }
  .top.dark .menu-btn { background: rgba(255,255,255,.14); } .top.dark .menu-btn span { background: #fff; }
  .drawer-shade { position: fixed; inset: 0; z-index: 40; background: rgba(4,11,38,.5); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .drawer-shade.open { opacity: 1; pointer-events: auto; }
  .drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--surface); color: var(--ink); display: flex; flex-direction: column; gap: 8px; padding: calc(16px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 20px; transform: translateX(105%); transition: transform .25s ease; overflow-y: auto; visibility: hidden; }
  .drawer.open { transform: none; visibility: visible; box-shadow: -30px 0 60px -30px rgba(3,14,52,.5); }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .drawer-head .brand { font-size: 16px; } .drawer-head .brand small { display: none; }
  .drawer-close { position: relative; flex: none; width: 46px; height: 46px; border: 0; border-radius: 23px; background: var(--bg); cursor: pointer; }
  .drawer-close span { position: absolute; left: 13px; top: 22px; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
  .drawer-close span + span { transform: rotate(-45deg); }
  .drawer-links { display: flex; flex-direction: column; }
  .drawer-links > a:not(.btn), .drawer-links > span, .drawer-links button.link { display: block; width: 100%; text-align: left; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font: 700 19px var(--display); color: var(--ink); text-decoration: none; cursor: pointer; }
  .drawer-links > span { font: 600 15px var(--body); color: var(--muted); overflow-wrap: anywhere; }
  .drawer-links > a.cur { color: var(--blue); }
  .drawer-links form { margin: 0; }
  .drawer-links .btn { margin-top: 18px; width: 100%; min-height: 52px; font-size: 16px; background: var(--blue); color: #fff; }
  @media (max-width: 820px) {
    html.js .top .nav { display: none; }
    html.js .menu-btn { display: inline-flex; }
    .top .inner { flex-wrap: nowrap; }
    .brand { font-size: 16px; min-width: 0; }
    .tabs2 { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; } .tabs2 button { white-space: nowrap; }
    .top.dark .inner { flex-wrap: wrap; }
  }
  @media (prefers-reduced-motion: reduce) { .drawer, .drawer-shade { transition: none; } }

  /* Sign-in pages fill the whole window. */
  .door { min-height: 100vh; min-height: 100dvh; }
  @media (max-width: 820px) { .door { min-height: 100vh; min-height: 100dvh; grid-template-rows: auto 1fr; } .door .form { align-items: flex-start; } }

  /* The date picker */
  input.datepick { cursor: pointer; caret-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003c9a' stroke-width='2' stroke-linecap='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='3'/%3E%3Cpath d='M4 10h16M8 3v4M16 3v4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
  .cal { position: absolute; z-index: 50; width: 308px; max-width: calc(100vw - 24px); background: var(--surface); border-radius: 22px; padding: 14px; box-shadow: 0 30px 50px -24px rgba(3,14,52,.5), 0 0 0 1px var(--line); }
  .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .cal-head b { font: 700 17px var(--display); }
  .cal-head button { width: 38px; height: 38px; border: 0; border-radius: 19px; background: var(--bg); color: var(--ink); font: 700 22px/1 var(--body); cursor: pointer; }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .cal-grid i { font: 700 12px var(--body); font-style: normal; color: var(--muted); text-align: center; padding: 6px 0; }
  .cal-grid button { height: 38px; border: 1.5px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); font: 600 15px var(--body); font-variant-numeric: tabular-nums; cursor: pointer; }
  .cal-grid button:hover { background: var(--blue-soft); }
  .cal-grid button.today { border-color: var(--blue); }
  .cal-grid button.on { background: var(--blue); color: #fff; }
  .cal-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .cal-foot button { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--blue-soft); color: var(--blue); font: 700 14px var(--body); cursor: pointer; }

  .opening { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
  .opening img { border-radius: 16px; }

  /* Confirmation after sending an ad for review */
  .sent-shade { position: fixed; inset: 0; z-index: 60; background: rgba(4,11,38,.55); display: flex; align-items: center; justify-content: center; padding: 20px; animation: sent-fade .18s ease; }
  .sent { width: min(420px, 100%); background: var(--surface); border-radius: 28px; padding: 32px 28px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; box-shadow: 0 40px 70px -30px rgba(3,14,52,.6); animation: sent-pop .28s cubic-bezier(.2,.9,.3,1.2); }
  .sent h2 { font-size: 28px; }
  .sent-check { width: 84px; height: 84px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; margin-bottom: 4px; }
  .sent-check svg { width: 46px; height: 46px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: sent-draw .35s .15s ease forwards; }
  .sent .btn { margin-top: 8px; }
  @keyframes sent-fade { from { opacity: 0; } }
  @keyframes sent-pop { from { opacity: 0; transform: scale(.92) translateY(10px); } }
  @keyframes sent-draw { to { stroke-dashoffset: 0; } }
  @media (prefers-reduced-motion: reduce) { .sent-shade, .sent { animation: none; } .sent-check svg { animation: none; stroke-dashoffset: 0; } }

  /* The sponsor's own page, as the app shows it */
  .a-page { background: #f1f4fb; border: 1px solid var(--line); border-radius: 22px; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
  .a-page-head { display: flex; align-items: center; gap: 12px; }
  .a-page-head > div { flex: 1; min-width: 0; }
  .a-page-head img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; background: #fff; outline: 1px solid var(--line); outline-offset: -1px; flex: none; }
  .a-page-title { font: 700 24px/1.2 var(--display); overflow-wrap: anywhere; }
  .a-page-offer { background: var(--lime-soft); color: var(--on-lime-soft); border-radius: 18px; padding: 14px; font: 500 15px/1.4 var(--body); overflow-wrap: anywhere; }
  .a-about { font: 500 15px/1.45 var(--body); overflow-wrap: anywhere; }
  .a-page-h { font: 700 18px var(--display); margin: 4px 4px 0; }
  .a-rows { padding-block: 2px; gap: 0; }
  .a-row { display: flex; align-items: center; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
  .a-row:last-child, .a-row:not([hidden]):nth-last-child(1) { border-bottom: 0; }
  .a-row > div { flex: 1; min-width: 0; }
  .a-row .chev { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); flex: none; margin-right: 4px; }
  .a-page-btn { min-height: 48px; border-radius: 24px; background: var(--blue); color: #fff; font: 700 15px var(--body); display: flex; align-items: center; justify-content: center; }

  /* The typing heading keeps room for its longest question so the page below never jumps. */
  h1.asking { font-size: clamp(30px, 3.6vw, 44px); text-wrap: wrap; min-height: calc(1.08em * 2); }
  @media (min-width: 821px) and (max-width: 1040px) { h1.asking { min-height: calc(1.08em * 3); } }
  .caret { display: inline-block; width: .08em; min-width: 3px; height: .95em; margin-left: .06em; vertical-align: -.08em; background: var(--lime); border-radius: 2px; animation: caret 1s steps(1) infinite; }
  @keyframes caret { 50% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .caret { display: none; } }

  .asks .ask-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 0 14px; border-radius: 16px; background: var(--blue); color: #fff; }
  .asks .ask-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .asks div:nth-child(even) .ask-icon { background: var(--lime); color: var(--ink); }

  /* One part of a screen lifted off the glass. On a tilted phone it floats in the phone's own 3D space;
     on a flat phone the lifted piece carries the tilt itself. */
  .device { transform-style: preserve-3d; }
  .device .pop { position: absolute; z-index: 3; left: calc(10px + (var(--w) - 20px) * 0.0407); top: calc(44px + (var(--w) - 20px) * var(--pt)); width: calc((var(--w) - 20px) * 0.9185); height: auto; border-radius: 16px; object-fit: fill; box-shadow: 0 0 0 3px #fff, 0 34px 40px -16px rgba(3,14,52,.6), 0 10px 18px -8px rgba(3,14,52,.35); transform: translateZ(70px) scale(1.12); }
  .device.flat .pop { transform: perspective(900px) rotateY(-16deg) rotateX(7deg) scale(1.2) translateX(8%); transform-origin: left center; }
  .split.flip .device.flat .pop { transform: perspective(900px) rotateY(16deg) rotateX(7deg) scale(1.2) translateX(-8%); transform-origin: right center; }
