/* Sewa Sepeda Banjarmasin. Colours come from the logo (Logo/Source/palette.json):
   the olive frame, the leather saddle, the wooden basket and the cream paper the
   logo is drawn on. Light only: people read this outdoors, on a phone, in sun. */

@font-face {
  font-family: "Poppins";
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/poppins-extrabold.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* Logo palette */
  --olive-950: #2c3d15;
  --olive-900: #3f5620; /* wordmark */
  --olive-800: #4f6424; /* frame shade */
  --olive-600: #6b8431; /* frame */
  --olive-400: #93ab52; /* frame highlight */
  --olive-200: #b3c084; /* hill */
  --olive-100: #dfe3c9;
  --leather-700: #9a5628;
  --leather-600: #b8672f; /* "BANJARMASIN" */
  --leather-500: #c4743a; /* saddle */
  --leather-300: #e0995e;
  --wood-300: #e6ae6a;
  --wood-100: #f6e2c2;
  --ink: #171b12;
  --ink-soft: #4a5240;
  --paper: #f4efe2;
  --paper-deep: #ebe4d2;
  --paper-card: #fbf8f0;
  --night: #10150d;
  --night-soft: #1c2317;
  --line: #d9d0ba;
  --line-strong: #857c66;

  /* Roles */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-soft);
  --accent: var(--olive-900);
  --accent-fg: #fbf8f0;
  --warm: #8a4a20; /* leather-700 darkened to pass 4.5:1 on small text */
  --focus: var(--leather-700);
  --danger: #a3301f;

  --font-display: "Poppins", "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --radius-sm: 8px;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--olive-900);
}
h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  a:hover {
    text-decoration-color: currentColor;
  }
}

::selection {
  background: var(--wood-300);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 150ms ease,
    box-shadow 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    --btn-bg: var(--olive-950);
    box-shadow: 0 6px 16px -8px rgb(23 27 18 / 0.5);
  }
}
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--olive-900);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    --btn-bg: var(--paper-deep);
    box-shadow: inset 0 0 0 1.5px var(--olive-600);
  }
}
.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header[data-scrolled] {
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.site-logo {
  display: block;
  flex: none;
  border-radius: 6px;
}
.site-logo img {
  height: 52px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
}
.site-nav ul {
  display: flex;
  gap: clamp(12px, 2.2vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav ul a {
  display: inline-block;
  padding-block: 10px;
  font-weight: 500;
  font-size: 0.9688rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 150ms ease;
}
.site-nav ul a[aria-current="page"] {
  color: var(--olive-900);
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .site-nav ul a:hover {
    color: var(--olive-900);
  }
}
@media (max-width: 860px) {
  .site-nav ul {
    display: none;
  }
}
@media (max-width: 420px) {
  .site-logo img {
    height: 38px;
  }
  .site-header .btn-sm {
    padding-inline: 14px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(64px, 10vw, 120px);
}
.section-deep {
  background: var(--paper-deep);
}
.section-head {
  display: grid;
  gap: 14px;
  max-width: 40rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}
.section-head p {
  color: var(--muted);
  font-size: 1.125rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
@media (min-width: 940px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}
.hero-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--leather-700);
}
.hero-lede {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.hero-fleet {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--muted);
}
.hero-fleet li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-fleet li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive-600);
}
.hero-fleet li:nth-child(2)::before {
  background: var(--leather-500);
}
.hero-fleet li:nth-child(3)::before {
  background: var(--wood-300);
}

.hero-art {
  position: relative;
  margin-inline: -4%;
}
.hero-bike {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* The one authored moment: the bike rolls onto its hill and stops. The wheels
   turn by exactly the distance travelled (220 units over a 214-unit radius is
   58.9deg), and both share one curve, so they never skid. */
.hero-bike .wheel {
  transform-box: fill-box;
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-bike .bike {
    animation: bike-roll 1400ms var(--ease-out) 120ms both;
  }
  .hero-bike .wheel {
    animation: wheel-turn 1400ms var(--ease-out) 120ms both;
  }
}
@keyframes bike-roll {
  from {
    transform: translateX(-220px);
  }
}
@keyframes wheel-turn {
  from {
    transform: rotate(-58.9deg);
  }
}

/* ---------- Prices ---------- */

.price-board {
  border-top: 2px solid var(--olive-900);
}
.price-head,
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 8.5rem 8.5rem;
  gap: 24px;
  align-items: baseline;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.price-head {
  padding-block: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}
.price-head span:nth-child(n + 3),
.price-row .price {
  text-align: right;
}
.price-row h3 {
  font-size: 1.375rem;
  color: var(--ink);
}
.price-row p {
  color: var(--muted);
}
.price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--olive-900);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price small {
  display: none;
}
.price-note {
  margin-top: 20px;
  max-width: 40rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
@media (max-width: 720px) {
  .price-head {
    display: none;
  }
  .price-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
  }
  .price-row h3,
  .price-row p {
    grid-column: 1 / -1;
  }
  .price-row .price {
    text-align: left;
    margin-top: 8px;
  }
  .price small {
    display: block;
    font: 500 0.8125rem/1.4 var(--font-body);
    color: var(--muted);
  }
}

/* ---------- Routes ---------- */

.routes {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}
@media (min-width: 900px) {
  .routes {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }
  .routes .section-head {
    position: sticky;
    top: 112px;
    margin-bottom: 0;
  }
}
.stops {
  position: relative;
  margin: 0;
  padding: 0 0 0 40px;
  list-style: none;
}
/* The river: Sungai Martapura runs past every stop on this list. */
.stops::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  bottom: 14px;
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(var(--olive-200), var(--olive-400));
}
.stop {
  position: relative;
  padding-block: 18px;
}
.stop + .stop {
  border-top: 1px solid var(--line);
}
.stop::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 26px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow:
    inset 0 0 0 5px var(--olive-900),
    0 0 0 4px var(--paper);
}
.section-deep .stop::before {
  background: var(--paper-deep);
  box-shadow:
    inset 0 0 0 5px var(--olive-900),
    0 0 0 4px var(--paper-deep);
}
.stop h3 {
  font-size: 1.375rem;
  color: var(--ink);
}
.stop p {
  margin-top: 6px;
  color: var(--muted);
  max-width: 36rem;
}
.stop .when {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--wood-100);
  color: var(--warm);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}
.step {
  counter-increment: step;
  display: grid;
  align-content: start;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
@media (min-width: 820px) {
  .step {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 24px;
    border-top: 2px solid var(--olive-900);
  }
}
.step::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--olive-900);
  color: var(--paper);
  font: 800 1.125rem/1 var(--font-display);
}
@media (min-width: 820px) {
  .step::before {
    grid-row: auto;
  }
}
.step h3 {
  font-size: 1.25rem;
  color: var(--ink);
}
.step p {
  color: var(--muted);
}

/* ---------- Booking ---------- */

.booking {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
@media (min-width: 960px) {
  .booking {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}
.form {
  display: grid;
  gap: 22px;
}
.field {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.field-row {
  display: grid;
  gap: 22px;
  align-items: start;
}
@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.label,
.field > label,
fieldset > legend {
  font-weight: 600;
  font-size: 0.9688rem;
  color: var(--ink);
}
.hint {
  font-size: 0.875rem;
  color: var(--muted);
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
fieldset > legend {
  padding: 0;
  margin-bottom: 8px;
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-card);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
  caret-color: var(--leather-500);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}
textarea.input {
  min-height: 96px;
  resize: vertical;
}
.input::placeholder {
  color: #6f6a5c;
}
.input:focus-visible {
  outline: none;
  border-color: var(--olive-800);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--olive-600) 30%, transparent);
}
.input[aria-invalid="true"] {
  border-color: var(--danger);
}
.error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--danger);
}
.error[hidden] {
  display: none;
}
.error svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Bike choice: radio rows, each showing its own price. */
.choices {
  display: grid;
  gap: 10px;
}
.choice {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 14px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-card);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}
.choice input {
  grid-row: span 2;
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-card);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.choice input:checked {
  border-color: var(--olive-900);
  box-shadow: inset 0 0 0 4px var(--paper-card), inset 0 0 0 11px var(--olive-900);
}
.choice input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.choice:has(input:checked) {
  border-color: var(--olive-900);
  background: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .choice:hover {
    border-color: var(--olive-600);
  }
}
.choice-name {
  font-weight: 600;
}
.choice-price {
  grid-column: 2;
  font-size: 0.875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper-deep);
  box-shadow: inset 0 0 0 1px var(--line);
}
.segmented label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--muted);
  cursor: pointer;
  transition:
    background-color 180ms var(--ease-out),
    color 150ms ease,
    box-shadow 180ms var(--ease-out);
}
.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented label:has(input:checked) {
  background: var(--olive-900);
  color: var(--accent-fg);
}
.segmented label:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-card);
  overflow: hidden;
}
.stepper button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--olive-900);
  cursor: pointer;
  transition: background-color 150ms ease;
}
.stepper button svg {
  width: 18px;
  height: 18px;
}
.stepper button:focus-visible {
  outline-offset: -3px;
}
.stepper button[aria-disabled="true"] {
  color: #a8a18f;
  cursor: not-allowed;
}
@media (hover: hover) and (pointer: fine) {
  .stepper button:not([aria-disabled="true"]):hover {
    background: var(--paper-deep);
  }
}
.stepper output {
  min-width: 5.5rem;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.duration {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.duration .stepper[hidden] {
  display: none;
}

.summary {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius);
  background: var(--olive-900);
  color: var(--paper);
}
@media (min-width: 960px) {
  .summary {
    position: sticky;
    top: 100px;
  }
}
.summary h3 {
  color: var(--paper);
  font-size: 1.25rem;
}
.summary dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  margin: 0;
}
.summary dt {
  color: var(--olive-100);
  font-size: 0.9375rem;
}
.summary dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.summary .total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgb(244 239 226 / 0.25);
}
.summary .total span {
  color: var(--olive-100);
}
.summary .total strong {
  font: 800 clamp(1.75rem, 3vw, 2.25rem) / 1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--wood-300);
  font-variant-numeric: tabular-nums;
}
.summary .tip {
  font-size: 0.875rem;
  color: var(--wood-100);
}
.summary .tip[hidden] {
  display: none;
}
.summary .btn {
  --btn-bg: var(--wood-300);
  --btn-fg: var(--ink);
  width: 100%;
}
@media (hover: hover) and (pointer: fine) {
  .summary .btn:hover {
    --btn-bg: var(--leather-300);
  }
}
.summary .fineprint {
  font-size: 0.8125rem;
  color: var(--olive-100);
}

/* The leather ring is too dark on olive and night, so dark surfaces use wood. */
.summary,
.site-footer {
  --focus: var(--wood-300);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  color: #d9d6c9;
  padding-block: 56px 40px;
}
.site-footer .wrap {
  display: grid;
  gap: 32px;
}
@media (min-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: auto 1fr;
    align-items: end;
  }
}
.site-footer img {
  height: 64px;
  width: auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .footer-links {
    justify-content: flex-end;
  }
}
.footer-links a {
  display: inline-block;
  padding-block: 6px;
  color: #f4efe2;
  text-decoration: none;
  font-weight: 500;
}
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover {
    color: var(--wood-300);
  }
}
.footer-meta {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid #2b3324;
  font-size: 0.875rem;
  color: #a9ad9c;
}

/* ---------- Small state bridges ---------- */

/* Inline errors and the "pick Seharian" tip appear on input; a short fade keeps
   them from popping in. Opacity only, so reduced motion keeps it too. */
.error,
.summary .tip {
  transition: opacity 160ms var(--ease-out);
}
@starting-style {
  .error,
  .summary .tip {
    opacity: 0;
  }
}
.stepper button:not([aria-disabled="true"]):active svg {
  transform: scale(0.88);
}
.stepper button svg {
  transition: transform 120ms var(--ease-out);
}
