/* Tidy Tide Laundry
   Colours are taken from the logo. Two ideas carry the page: the tide (the navy opening with
   its two-layer wave, echoing the water in the logo's washing machine) and the laundry receipt
   (prices printed as nota slips with torn edges and dotted leaders). Everything else is quiet. */

:root {
  --krem: #fffcf2; /* page background, the logo's machine body */
  --navy: #1a2450; /* text and the opening */
  --navy-dalam: #121a3c;
  --tan: #c9b58f; /* the logo's frame and sparkles: rules and small accents */
  --biru: #b2d1ee; /* the logo's water: action buttons */
  --kertas: #ffffff;
  --garis: #e6dcc6;
  --redup: #545c7a;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--krem);
  color: var(--navy);
  font: 400 1.0625rem/1.6 var(--font);
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--navy);
  text-decoration-color: var(--tan);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--tan);
  outline-offset: 3px;
}

.ikon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

.lewati {
  position: absolute;
  left: -9999px;
}

.lewati:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--kertas);
}

/* Preview only: content still to be filled in konten.json. */
mark.isi {
  background: #ffe98a;
  color: #5a4300;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 500;
}

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

.tombol {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid var(--biru);
  border-radius: 999px;
  background: var(--biru);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.tombol:hover {
  background: #c8e0f5;
  border-color: #c8e0f5;
}

.tombol--garis {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.tombol--garis:hover {
  background: rgba(178, 209, 238, 0.18);
  border-color: currentColor;
}

.tombol--kecil {
  min-height: 42px;
  padding: 6px 16px;
  font-size: 0.95rem;
  background: var(--navy);
  border-color: var(--navy);
  color: var(--krem);
}

.tombol--kecil:hover {
  background: var(--navy-dalam);
  border-color: var(--navy-dalam);
}

.tombol-baris {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.atas {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--krem);
  border-bottom: 1px solid var(--garis);
}

.atas__dalam {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px;
}

.merek img {
  display: block;
  width: 150px;
  height: auto;
}

.atas nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.atas nav a:not(.tombol) {
  font-weight: 500;
  text-decoration: none;
}

.atas nav a:not(.tombol):hover {
  text-decoration: underline;
}

/* --- Opening ------------------------------------------------------------- */

.pembuka {
  position: relative;
  background: var(--navy);
  color: var(--krem);
}

.pembuka__dalam {
  display: grid;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(44px, 9vw, 104px) 20px clamp(96px, 13vw, 160px);
}

.pembuka h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 1.2rem + 5.6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.pembuka__isi {
  max-width: 48ch;
  font-size: 1.2rem;
  color: #d6dcef;
}

.pembuka .tombol--garis {
  color: var(--krem);
}

.ombak {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(44px, 7vw, 110px);
}

.ombak__biru {
  fill: var(--biru);
}

.ombak__krem {
  fill: var(--krem);
}

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

.bagian {
  display: grid;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 80px) 20px;
}

.bagian h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* --- The receipts -------------------------------------------------------- */

.nota-susun {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 28px;
  align-items: start;
}

.nota--lebar {
  grid-column: 1 / -1;
}

.nota-tumpuk {
  display: grid;
  gap: 28px;
}

@media (max-width: 860px) {
  .nota-susun {
    grid-template-columns: minmax(0, 1fr);
  }
}

.nota {
  --gigi: 9px; /* size of the torn teeth at the top and bottom */
  display: grid;
  gap: 18px;
  padding: calc(var(--gigi) + 24px) 26px;
  background: var(--kertas);
  filter: drop-shadow(0 6px 14px rgba(26, 36, 80, 0.1));
  /* Torn paper edge: a row of half circles cut out of the top and bottom. */
  -webkit-mask:
    radial-gradient(circle at 50% 0, transparent calc(var(--gigi) - 0.5px), #000 var(--gigi)) top /
      calc(var(--gigi) * 2) var(--gigi) repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - var(--gigi) * 2) no-repeat,
    radial-gradient(circle at 50% 100%, transparent calc(var(--gigi) - 0.5px), #000 var(--gigi))
      bottom / calc(var(--gigi) * 2) var(--gigi) repeat-x;
  mask:
    radial-gradient(circle at 50% 0, transparent calc(var(--gigi) - 0.5px), #000 var(--gigi)) top /
      calc(var(--gigi) * 2) var(--gigi) repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - var(--gigi) * 2) no-repeat,
    radial-gradient(circle at 50% 100%, transparent calc(var(--gigi) - 0.5px), #000 var(--gigi))
      bottom / calc(var(--gigi) * 2) var(--gigi) repeat-x;
}

.nota h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--garis);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nota h3 span {
  color: var(--redup);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
}

.nota ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nota--dua-kolom ul {
  display: block;
  columns: 2 220px;
  column-gap: 36px;
}

.nota--dua-kolom li {
  margin-bottom: 12px;
  break-inside: avoid;
}

.nota li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.nota__item {
  font-weight: 500;
}

/* Dotted leader between the item and its price, as on a printed price list. */
.nota__titik {
  flex: 1;
  min-width: 14px;
  border-bottom: 2px dotted var(--garis);
  transform: translateY(-5px);
}

.nota__harga {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nota__catatan {
  padding-top: 14px;
  border-top: 2px dashed var(--garis);
  color: var(--redup);
  font-size: 0.95rem;
}

.harga__bawah {
  color: var(--redup);
}

/* Kiloan: one row per package, regular and member prices side by side. */
.kilo {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.kilo th,
.kilo td {
  padding: 10px 0;
  text-align: left;
  vertical-align: baseline;
}

.kilo td {
  padding-left: 16px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.kilo thead th {
  padding-top: 0;
  color: var(--redup);
  font-size: 0.875rem;
  font-weight: 500;
}

.kilo thead th:not(:first-child) {
  padding-left: 16px;
  text-align: right;
}

.kilo tbody th {
  font-weight: 500;
}

.kilo tbody th span {
  margin-left: 6px;
  color: var(--redup);
  font-weight: 400;
}

.kilo tbody tr + tr th,
.kilo tbody tr + tr td {
  border-top: 1px solid #f1ebdc;
}

.kilo td,
.kilo thead th:not(:first-child) {
  width: 8.5rem;
}

/* The member column is the better deal; a tinted band marks it without shouting. */
.kilo td:last-child,
.kilo thead th:last-child {
  padding-right: 12px;
  background: #f8f2e3;
}

.kilo thead th:last-child {
  color: var(--navy);
  font-weight: 700;
}

.kilo__tambahan th[scope="rowgroup"] {
  padding-top: 22px;
  color: var(--redup);
  font-size: 0.875rem;
  font-weight: 500;
  border-top: 2px dashed var(--garis);
}

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

.langkah {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: langkah;
}

.langkah li {
  display: grid;
  gap: 6px;
  align-content: start;
  color: var(--redup);
}

.langkah li::before {
  counter-increment: langkah;
  content: counter(langkah);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--krem);
  font-size: 1.15rem;
  font-weight: 800;
}

.langkah strong {
  color: var(--navy);
  font-size: 1.15rem;
}

/* --- Terms --------------------------------------------------------------- */

.syarat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: syarat;
}

.syarat li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--garis);
}

.syarat li::before {
  counter-increment: syarat;
  content: counter(syarat);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--krem);
  font-weight: 800;
}

/* --- Location ------------------------------------------------------------ */

.lokasi__isi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}

.lokasi__isi > div {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.lokasi__alamat {
  max-width: 34ch;
  font-size: 1.2rem;
  font-weight: 500;
}

.jam {
  width: 100%;
  border-collapse: collapse;
  background: var(--kertas);
  border-radius: 12px;
  overflow: hidden;
}

.jam caption {
  padding-bottom: 10px;
  font-weight: 700;
  text-align: left;
}

.jam th,
.jam td {
  padding: 14px 18px;
  border-top: 1px solid var(--garis);
  text-align: left;
}

.jam tr:first-child th,
.jam tr:first-child td {
  border-top: 0;
}

.jam th {
  font-weight: 500;
}

.jam td {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* --- Questions ----------------------------------------------------------- */

.tanya {
  display: grid;
  max-width: 760px;
  border-top: 1px solid var(--garis);
}

.tanya details {
  border-bottom: 1px solid var(--garis);
}

.tanya summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.tanya summary::-webkit-details-marker {
  display: none;
}

.tanya summary::after {
  content: "+";
  color: var(--tan);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

.tanya details[open] summary::after {
  content: "\2212";
}

.tanya details p {
  max-width: 62ch;
  padding-bottom: 20px;
  color: var(--redup);
}

/* --- Footer and floating button ------------------------------------------ */

.bawah {
  display: grid;
  gap: 6px;
  padding: 36px 20px 112px;
  background: var(--navy);
  color: #c9d0e6;
  text-align: center;
}

.bawah strong {
  color: var(--krem);
}

.bawah a {
  color: var(--biru);
}

/* On phones the order button stays within thumb reach. */
.wa-melayang {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--krem);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(26, 36, 80, 0.3);
}

@media (max-width: 640px) {
  .atas nav a:not(.tombol) {
    display: none;
  }

  .merek img {
    width: 120px;
  }

  .wa-melayang {
    display: inline-flex;
  }

  .nota {
    padding-inline: 18px;
  }

  .kilo {
    font-size: 0.95rem;
  }

  .kilo td,
  .kilo thead th:not(:first-child) {
    width: auto;
    padding-left: 10px;
  }

  .kilo td:last-child,
  .kilo thead th:last-child {
    padding-right: 8px;
  }

  .kilo tbody th span {
    display: block;
    margin-left: 0;
  }
}

@media (min-width: 641px) {
  .bawah {
    padding-bottom: 40px;
  }
}
