/* Bunky — getbunky.com (v6, 2026-10-31).
   One screen, no scroll, split in two: a cobalt panel with the words and a three-step form, and a full-bleed photo
   that follows the form. Archivo for everything; no shadow, no gradient. Orange is for actions only (tiles on hover,
   the launch button). Phones: the panel on top, the photo fills the rest of the screen. */

/* ---------- font ---------- */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Arabic letters: Readex Pro (OFL), the Arabic partner chosen in the visual language; Latin stays Archivo */
@font-face {
  font-family: "Readex Pro"; font-style: normal; font-weight: 160 700; font-display: swap;
  src: url("/assets/fonts/readex-pro-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---------- tokens and base ---------- */
:root {
  --cobalt: #1F3FFF; --ink: #0B1026; --paper: #F4F6FF; --muted: #5A6079; --orange: #FF5A00;
  --gutter: clamp(20px, 4vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--cobalt); }
body {
  font-family: "Archivo", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.5;
  font-variant-numeric: tabular-nums; color: #fff; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; }
button, input { font: inherit; }

/* ---------- layout: one viewport, panel + photo ---------- */
.split {
  position: relative; height: 100svh; min-height: 560px;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
}
.panel {
  display: grid; grid-template-rows: auto auto; gap: clamp(14px, 2.4vh, 28px);
  padding: max(env(safe-area-inset-top), clamp(16px, 3vh, 36px)) var(--gutter) clamp(12px, 2vh, 22px);
  background: var(--cobalt);
}
/* FR/EN sits alone top right; the wordmark opens the text block, right above the headline */
.bar { justify-self: end; }
.brand {
  display: block; width: clamp(132px, 13vw, 210px); aspect-ratio: 608 / 168;
  background: url("/assets/img/bunky-wordmark-white-tight.png") left center / contain no-repeat;
}
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.lang a { text-decoration: none; padding: 6px 11px; border-radius: 999px; color: rgba(255,255,255,.82); }
.lang a:hover { color: #fff; }
.lang a[aria-current="page"] { background: #fff; color: var(--cobalt); }
.lang a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the words and the form share one column */
.copy { align-self: center; display: grid; gap: clamp(16px, 2.6vh, 30px); }
h1 { font-size: clamp(30px, min(8.4vw, 4.6vh), 40px); font-weight: 800; letter-spacing: -.02em; line-height: .98; text-wrap: balance; }
h1 em { font-style: normal; font-weight: 900; font-stretch: 125%; letter-spacing: -.01em; }
.lead { max-width: 32rem; margin-top: calc(-1 * clamp(4px, 1vh, 12px)); font-size: clamp(15px, 1.9vh, 17px); line-height: 1.45; color: var(--paper); text-wrap: pretty; }
/* the role chosen in the form switches the headline, the lead and the step-2 question */
.split[data-role="renter"] .for-owner, .split[data-role="owner"] .for-renter { display: none; }

/* ---------- the photo ---------- */
.photo { position: relative; min-height: 0; overflow: hidden; background: var(--ink); }
.photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02); transition: opacity .6s ease, transform 5s ease-out;
}
/* renters: the kind (rotating until they pick one); owners: their own photo, whatever the kind, so the
   picture always tells the same story as the headline */
.split[data-role="renter"][data-kind="parking"] .m-parking,
.split[data-role="renter"][data-kind="box"] .m-box,
.split[data-role="renter"][data-kind="garage"] .m-garage,
.split[data-role="owner"] .m-owner { opacity: 1; transform: scale(1); }

/* copyright: phones, bottom left of the photo on a small ink tag; desktop, centred under the cobalt half */
.foot {
  position: absolute; left: clamp(12px, 2vw, 28px); bottom: max(env(safe-area-inset-bottom), clamp(12px, 2vh, 24px));
  padding: 4px 10px; border-radius: 999px; background: rgba(11,16,38,.55); font-size: 12px; white-space: nowrap;
}
.foot a { margin-inline-start: 10px; text-decoration: none; opacity: .85; }
.foot a:hover { opacity: 1; text-decoration: underline; }

/* ---------- the form: three steps sharing one grid cell, so the block keeps its height ---------- */
.notify { display: grid; gap: 16px; width: 100%; max-width: 32rem; }
.steps { display: grid; }
.step {
  grid-area: 1 / 1; min-width: 0; display: grid; gap: 14px; align-content: start;
  transition: opacity .3s ease, transform .35s var(--ease), visibility 0s;
}
.step[inert] { opacity: 0; visibility: hidden; transform: translateX(28px); transition: opacity .2s ease, transform .35s ease, visibility 0s .35s; }
.step.past[inert] { transform: translateX(-28px); }
.q { font-size: clamp(19px, min(1.6vw, 2.9vh), 24px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.edit { justify-self: start; padding: 0; border: 0; background: none; color: var(--paper); font-size: 14px; font-weight: 600; cursor: pointer; }
.edit:hover { color: #fff; } .edit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

/* tiles (step 1: two, step 2: three) */
.tiles { display: grid; gap: 12px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles button {
  width: 100%; height: clamp(84px, 11vh, 112px); padding: 0 8px; border: 0; border-radius: 16px; cursor: pointer;
  display: grid; place-items: center; align-content: center; gap: 8px;
  background: rgba(255,255,255,.12); color: #fff;
  transition: background-color .2s ease, color .2s ease, transform .25s var(--ease);
}
.tiles svg { width: clamp(30px, 2.8vw, 42px); height: auto; overflow: visible; }
.tiles span { font-size: clamp(12px, .95vw, 14px); font-weight: 700; line-height: 1.2; letter-spacing: .01em; text-align: center; }
.tiles button:active { transform: scale(.97); }
.tiles button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tiles button[aria-pressed="true"] { background: #fff; color: var(--cobalt); }
/* step 2 before any choice: the tile of the photo on show glows */
.split:not(.chosen)[data-role="renter"][data-kind="parking"] .k-parking,
.split:not(.chosen)[data-role="renter"][data-kind="box"] .k-box,
.split:not(.chosen)[data-role="renter"][data-kind="garage"] .k-garage { background: rgba(255,255,255,.24); }

/* icon gestures, one each: the lens scans, the key turns, the car parks, the lid lifts, the door rolls up */
.tiles .lens, .tiles .key, .tiles .car, .tiles .lid, .tiles .door { transform-box: fill-box; transition: transform .45s var(--ease); }
.tiles .key { transform-origin: 30% 50%; }
.tiles .lid { transform-origin: 0% 100%; }
.tiles .door { transform-origin: 50% 0%; }
.tiles button[aria-pressed="true"] .lens { animation: look .6s ease both; }
.tiles button[aria-pressed="true"] .key { transform: rotate(-90deg); }
.tiles button[aria-pressed="true"] .car { animation: park .55s var(--ease) both; }
.tiles button[aria-pressed="true"] .lid { transform: translateY(-1px) rotate(-8deg); }
.tiles button[aria-pressed="true"] .door { transform: scaleY(.3); }
@keyframes look { 30% { transform: translateX(-1.5px); } 65% { transform: translateX(1.5px); } to { transform: none; } }
@keyframes park { from { transform: translateX(-6px); opacity: .2; } 70% { transform: translateX(.6px); opacity: 1; } to { transform: none; } }
/* hover (mouse only): orange with a small lift, the icon hints its gesture */
@media (hover: hover) {
  .tiles button:not([aria-pressed="true"]):hover { background: var(--orange); transform: translateY(-3px); }
  .tiles button:hover .lens { transform: rotate(-8deg); }
  .tiles button:hover .key { transform: rotate(-10deg); }
  .tiles button:hover .car { transform: translateX(1px); }
  .tiles button:hover .lid { transform: translateY(-1px); }
  .tiles button:hover .door { transform: scaleY(.85); }
}

/* step 3: e-mail */
.row { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: #fff; }
.row:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
.row input { flex: 1; min-width: 0; padding: 9px 11px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.row input::placeholder { color: var(--muted); }
.row button { padding: 11px 16px; border: 0; border-radius: 9px; background: var(--orange); color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.row button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.row button[disabled] { opacity: .6; cursor: progress; }
/* optional opt-in for early tests and launch offers (unticked by default) */
.early { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.35; color: var(--paper); cursor: pointer; }
.early input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange); cursor: pointer; }
.early input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.info { font-size: 12px; line-height: 1.4; color: var(--paper); opacity: .85; }
.info a { color: #fff; }
.err { display: none; font-size: 13px; font-weight: 600; }
.notify.error .err { display: block; }
.thanks { display: none; padding: 14px 16px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; }
.notify.sent .steps { display: none; }
.notify.sent .thanks { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- phones ---------- */
@media (max-width: 879px) {
  .panel { grid-template-rows: auto; }
  /* phones: each step takes only its own height, so no empty band is reserved above the photo */
  .step[inert] { display: none; }
  .bar { position: absolute; z-index: 1; top: max(env(safe-area-inset-top), clamp(16px, 3vh, 36px)); inset-inline-end: var(--gutter); }
  .lang a { padding: 6px 9px; }
  .notify { max-width: none; }
  .tiles { gap: 8px; }
  .tiles button { height: 72px; gap: 6px; border-radius: 14px; }
  .tiles svg { width: 26px; }
}
@media (max-width: 879px) and (max-height: 760px) { .lead { display: none; } }
@media (max-width: 879px) and (max-height: 700px) { .tiles button { height: 56px; } .tiles.three span { display: none; } }

/* ---------- desktop: two halves ---------- */
@media (min-width: 880px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .panel { grid-template-rows: auto 1fr; padding-right: clamp(32px, 4vw, 72px); }
  .copy { max-width: 36em; }
  /* lift the block a little above the centre, so the top of the panel does not feel empty */
  .panel .copy { margin-bottom: clamp(0px, 10vh - 40px, 80px); }
  /* the emphasised line never wraps, so the size is set by the longest one ("right next door.", 9.6 em wide)
     against the text column (at most 42vw or 36rem), with a small margin; one size for both languages */
  h1 { max-width: 11em; font-size: clamp(34px, min(4.2vw, 8vh), 58px); }
  h1 em { white-space: nowrap; }
  .lead { font-size: clamp(16px, min(1.35vw, 2.3vh), 20px); }
  /* copyright: centred at the bottom of the cobalt half, no tag needed on the plain background */
  .foot { left: 25%; transform: translateX(-50%); padding: 0; background: none; color: var(--paper); }
}

/* very small windows: let the page grow and scroll rather than squeeze */
@media (max-height: 559px) { .split { height: auto; } .photo { min-height: 60vw; } }

@media (prefers-reduced-motion: reduce) {
  .photo img, .step, .step[inert], .tiles button, .tiles svg * { transition: none !important; animation: none !important; }
}

/* ---------- Arabic (dir="rtl"): the grid, flex and logical properties mirror on their own; the rest is set here ---------- */
:lang(ar) body, :lang(ar) button, :lang(ar) input { font-family: "Readex Pro", "Archivo", system-ui, sans-serif; }
:lang(ar) h1 { font-weight: 700; letter-spacing: 0; line-height: 1.2; }
:lang(ar) h1 em { font-weight: 700; font-stretch: 100%; letter-spacing: 0; }
:lang(ar) .lead { line-height: 1.7; }
:lang(ar) .q { letter-spacing: 0; line-height: 1.4; }
:lang(ar) .tiles span { letter-spacing: 0; }
[dir="rtl"] .brand { background-position: right center; }
[dir="rtl"] .step[inert] { transform: translateX(-28px); }
[dir="rtl"] .step.past[inert] { transform: translateX(28px); }
[dir="rtl"] .row input { text-align: right; }
[dir="rtl"] .foot { left: auto; right: clamp(12px, 2vw, 28px); }
@media (min-width: 880px) { [dir="rtl"] .foot { right: 25%; transform: translateX(50%); } }
.lang a:lang(ar) { font-family: "Readex Pro", system-ui, sans-serif; letter-spacing: 0; }

/* ---------- privacy page: a plain readable document on cobalt (this one may scroll) ---------- */
.doc { width: min(40rem, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(28px, 6vh, 64px) 0 72px; }
.doc .brand { margin-bottom: 36px; }
.doc h1 { max-width: none; font-size: clamp(34px, 5vw, 52px); }
.doc .updated { margin-top: 8px; font-size: 14px; color: var(--paper); opacity: .85; }
.doc h2 { margin-top: 32px; font-size: 19px; font-weight: 700; }
.doc p { margin-top: 8px; color: var(--paper); line-height: 1.6; }
.doc a { color: #fff; }
.doc .back { margin-top: 40px; }
.doc .back a { font-weight: 700; text-decoration: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; gap: 24px; padding: clamp(16px, 3vh, 36px) var(--gutter); }
.notfound .copy { max-width: 40rem; }
.notfound .links { display: flex; flex-wrap: wrap; gap: 12px; }
.notfound .links a { padding: 11px 16px; border-radius: 12px; background: #fff; color: var(--cobalt); font-weight: 700; text-decoration: none; }
.notfound .links a:hover { background: var(--orange); color: #fff; }
.notfound h1 { max-width: none; } .notfound h1 em { display: block; }
