/* Calm card layout dressed in surfsidepoke.be elements: ocean hero (Waves texture + #007CA4 overlay),
   CCYouBlockhead titles, Open Sans body, their teal/sand/aqua palette and outlined pill buttons. */

@font-face {
  font-family: 'CCYouBlockhead';
  src: url(/fonts/ccyoublockhead.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url(/fonts/open-sans.woff2) format('woff2');
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --teal: #072a30;
  --teal-2: #06404a;
  --ocean: rgba(0, 124, 164, .84);
  --aqua: #73d0da;
  --sand: #ffe1ad;
  --sand-2: #ffdda3;
  --white: #fff;
  --block: 'CCYouBlockhead', 'Arial Black', sans-serif;
  --sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --outline-lg: var(--teal) 6.00px 0.00px 0, var(--teal) 5.88px 1.17px 0, var(--teal) 5.54px 2.30px 0, var(--teal) 4.99px 3.33px 0, var(--teal) 4.24px 4.24px 0, var(--teal) 3.33px 4.99px 0, var(--teal) 2.30px 5.54px 0, var(--teal) 1.17px 5.88px 0, var(--teal) 0.00px 6.00px 0, var(--teal) -1.17px 5.88px 0, var(--teal) -2.30px 5.54px 0, var(--teal) -3.33px 4.99px 0, var(--teal) -4.24px 4.24px 0, var(--teal) -4.99px 3.33px 0, var(--teal) -5.54px 2.30px 0, var(--teal) -5.88px 1.17px 0, var(--teal) -6.00px 0.00px 0, var(--teal) -5.88px -1.17px 0, var(--teal) -5.54px -2.30px 0, var(--teal) -4.99px -3.33px 0, var(--teal) -4.24px -4.24px 0, var(--teal) -3.33px -4.99px 0, var(--teal) -2.30px -5.54px 0, var(--teal) -1.17px -5.88px 0, var(--teal) -0.00px -6.00px 0, var(--teal) 1.17px -5.88px 0, var(--teal) 2.30px -5.54px 0, var(--teal) 3.33px -4.99px 0, var(--teal) 4.24px -4.24px 0, var(--teal) 4.99px -3.33px 0, var(--teal) 5.54px -2.30px 0, var(--teal) 5.88px -1.17px 0;
  --outline-sm: var(--teal) 4.00px 0.00px 0, var(--teal) 3.86px 1.04px 0, var(--teal) 3.46px 2.00px 0, var(--teal) 2.83px 2.83px 0, var(--teal) 2.00px 3.46px 0, var(--teal) 1.04px 3.86px 0, var(--teal) 0.00px 4.00px 0, var(--teal) -1.04px 3.86px 0, var(--teal) -2.00px 3.46px 0, var(--teal) -2.83px 2.83px 0, var(--teal) -3.46px 2.00px 0, var(--teal) -3.86px 1.04px 0, var(--teal) -4.00px 0.00px 0, var(--teal) -3.86px -1.04px 0, var(--teal) -3.46px -2.00px 0, var(--teal) -2.83px -2.83px 0, var(--teal) -2.00px -3.46px 0, var(--teal) -1.04px -3.86px 0, var(--teal) -0.00px -4.00px 0, var(--teal) 1.04px -3.86px 0, var(--teal) 2.00px -3.46px 0, var(--teal) 2.83px -2.83px 0, var(--teal) 3.46px -2.00px 0, var(--teal) 3.86px -1.04px 0;
}

* { box-sizing: border-box; }

html { background: var(--sand); }

/* One viewport: hero on top, the cards take the remaining height */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--sand);
  color: var(--teal);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

/* Hero */

.hero {
  flex: none;
  position: relative;
  overflow-x: clip;
  padding: max(12px, env(safe-area-inset-top)) 20px 38px;
  color: var(--white);
  background:
    linear-gradient(var(--ocean), var(--ocean)),
    url(/assets/waves.webp) center / cover;
}

.wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  display: block;
  width: 66px;
  height: auto;
}

.lang {
  display: flex;
  gap: 2px;
  background: var(--teal);
  border-radius: 12px;
  padding: 4px;
}

.lang button {
  font: 700 13px/1 var(--sans);
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .6);
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 9px 10px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  color: var(--white);
  background: var(--teal-2);
}

.place {
  font-family: var(--block);
  font-size: 19px;
  color: var(--sand-2);
}

.hero h1 {
  position: relative;
  z-index: 2;
  font-family: var(--block);
  font-weight: 400;
  font-size: clamp(22px, 6.4vw, 30px);
  line-height: 1.2;
  color: var(--white);
  text-shadow: var(--outline-sm);
  margin: 12px 0 4px;
  padding-right: 18%;
}

.intro {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 14px;
  letter-spacing: .4px;
  padding-right: 26%;
}

/* The bowls tumble out of the ocean onto the shore */
.bowls {
  position: absolute;
  z-index: 1;
  right: -48px;
  bottom: -64px;
  width: min(190px, 48vw);
  height: auto;
  pointer-events: none;
}

.shore {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: block;
  width: 100%;
  height: 28px;
}

.shore .foam { fill: var(--white); }
.shore .sandline { fill: var(--sand); }

/* Cards */

.options {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px 6px;
  position: relative;
  z-index: 2;
}

.card {
  display: grid;
  grid-template-columns: 44px 1fr 22px;
  align-items: center;
  gap: 14px;
  background: var(--white);
  color: var(--teal);
  text-decoration: none;
  border: 2px solid var(--teal);
  border-radius: 18px;
  padding: 11px 14px;
  box-shadow: 0 4px 0 var(--teal);
}

a.card:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--teal);
}

.icon {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 50%;
  background: var(--aqua);
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.text strong {
  font-family: var(--block);
  font-weight: 400;
  font-size: clamp(16px, 4.9vw, 19px);
  white-space: nowrap;
  line-height: 1.2;
}

.text > span {
  font-size: 13.5px;
  color: rgba(7, 42, 48, .75);
}

/* Delivery: one card, two platform pills */

.delivery {
  display: block;
}

.delivery .head {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
}

.apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 12px;
  border: 2px solid var(--teal);
  border-radius: 50px;
  font: 700 16px/1.2 var(--sans);
  text-decoration: none;
  color: var(--teal);
}

.pill:active {
  background: var(--teal);
  color: var(--sand);
}

.pill svg {
  flex: none;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* B2B */

.b2b {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 0 var(--aqua);
}

a.b2b:active { box-shadow: 0 1px 0 var(--aqua); }

.b2b .icon { background: var(--sand-2); }

.b2b small {
  color: var(--aqua);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
}

.b2b strong { color: var(--sand-2); }

.b2b .times {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--white);
}

.times > span { white-space: nowrap; }

.times b {
  font-weight: 600;
  color: var(--aqua);
}

/* Footer */

footer {
  flex: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 8px 16px max(14px, env(safe-area-inset-bottom));
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3px;
}

footer span { color: rgba(7, 42, 48, .6); }

footer a { text-underline-offset: 3px; }

/* Short screens (iPhone SE with browser bars): tighten so all cards stay in view */
@media (max-height: 650px) {
  .logo { width: 54px; }
  .place { font-size: 17px; }
  .b2b small { display: none; }
  .hero h1 { padding-right: 24%; }
  .hero { padding-bottom: 32px; }
  .hero h1 { font-size: 22px; line-height: 1.1; margin-top: 4px; }
  .bowls { width: min(140px, 38vw); bottom: -46px; }
  .options { gap: 10px; padding-top: 8px; }
  .card { padding: 10px 12px; }
  .text > span { display: none; }
  .b2b .text > .times { display: flex; }
  .apps { margin-top: 8px; }
}

@media (min-width: 640px) {
  .logo { width: 92px; }
}
