/* myoran.com — landing page.
 *
 * Design direction: the enseigne. What we sell a shop owner is a sign — the one
 * that says where to find them. So the hero is a sign panel, brass on limewash,
 * and the page is built out of the same materials: harbour blue, brass, lime
 * plaster. Every number (price, count, coordinate) is set in monospace, because
 * on this page the numbers are the argument.
 *
 * No webfont is loaded: a font request is a third-party request, and this page
 * must make none before the visitor consents. The type personality comes from
 * scale, weight and the monospace numerals instead.
 */

:root {
  --ink: #0b1a24;
  --deep: #113a4c;
  --deep-soft: #17505f;
  --brass: #d9a441;
  --brass-lit: #f2ce85;
  --lime: #f4f1e6;
  --lime-dim: #e5e0cf;
  --clay: #9c3c29; /* darkened from #b4503c: 4.47:1 on --lime failed WCAG AA */
  --text: #0b1a24;
  --muted: #4d6472;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --arabic: "Segoe UI", "Noto Naskh Arabic", "Traditional Arabic", Tahoma, sans-serif;

  --edge: 14px;
  --shell: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--lime);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}

html[lang="ar"] body {
  font-family: var(--arabic);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--deep);
}

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

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
}
.skip:focus {
  position: static;
  display: inline-block;
  margin: 8px;
  padding: 8px 12px;
  background: var(--brass);
  color: var(--ink);
  font-weight: 700;
}

/* ── top bar ─────────────────────────────────────────────────────────── */

.top {
  background: var(--ink);
  color: var(--lime);
  padding: 10px 0;
}
.top .shell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wordmark {
  font: 700 17px/1 var(--mono);
  letter-spacing: -0.02em;
  color: var(--lime);
  text-decoration: none;
  flex: 1;
}
.wordmark span {
  color: var(--brass);
}
.langs {
  display: flex;
  gap: 6px;
}
.langs button {
  font: 600 13px/1 var(--sans);
  color: var(--brass-lit);
  background: transparent;
  border: 1px solid rgb(217 164 65 / 45%);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
}
.langs button[aria-pressed="true"] {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}

/* ── hero: the sign ──────────────────────────────────────────────────── */

.hero {
  padding: 34px 0 46px;
}

/* One thin awning band, the only ornament on the page. */
.awning {
  height: 10px;
  background: repeating-linear-gradient(
    115deg,
    var(--brass) 0 14px,
    var(--ink) 14px 28px
  );
}

.sign {
  background: var(--lime);
  color: var(--ink);
  border: 3px solid var(--brass);
  border-radius: 4px;
  box-shadow: 0 14px 0 -6px rgb(0 0 0 / 25%);
  padding: 18px 16px;
  text-align: center;
}
.sign-eyebrow {
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sign-domain {
  margin-top: 10px;
  font: 700 clamp(17px, 5.4vw, 34px) / 1.15 var(--mono);
  letter-spacing: -0.03em;
  /* The trade word is swapped at runtime and some are long; never let one push
     the page sideways. */
  overflow-wrap: anywhere;
}
.sign-trade {
  color: var(--deep);
  border-bottom: 3px solid var(--brass);
  padding-bottom: 2px;
  transition: opacity 0.28s ease;
}
.sign-trade.swap {
  opacity: 0;
}

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(30px, 8vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}
.hero .lede {
  margin: 14px 0 0;
  max-width: 46ch;
  color: rgb(244 241 230 / 82%);
  font-size: clamp(16px, 4.3vw, 19px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--brass);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--brass-lit);
}
.btn-ghost {
  border-color: rgb(217 164 65 / 55%);
  color: var(--brass-lit);
}
.btn-ghost:hover {
  border-color: var(--brass);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: rgb(244 241 230 / 72%);
}
.hero-facts b {
  font-family: var(--mono);
  color: var(--brass-lit);
}

/* ── sections ────────────────────────────────────────────────────────── */

section {
  padding: 52px 0;
}
section + section {
  border-top: 1px solid var(--lime-dim);
}
.eyebrow {
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 8px;
}
h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 6vw, 33px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.25;
}
.sub {
  margin: 0 0 26px;
  max-width: 54ch;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--lime-dim);
  border-radius: 6px;
  padding: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* Prices as market tags: the plate is the product, the number is the pitch. */
.tags {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .tags {
    grid-template-columns: repeat(2, 1fr);
  }
}
.tag {
  display: flex;
  align-items: baseline;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--lime-dim);
  border-inline-start: 5px solid var(--deep);
  border-radius: 4px;
  padding: 16px 18px;
}
.tag.launch {
  border-inline-start-color: var(--clay);
  background: #fffaf7;
}
.tag-price {
  font: 700 clamp(19px, 5vw, 25px) / 1 var(--mono);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.tag-what {
  flex: 1;
}
.tag-what span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.contact-mail {
  margin: 16px 0 0;
}
.tag-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* The one place numbering is used, because these really are three steps. */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.steps li {
  counter-increment: step;
  padding-top: 14px;
  border-top: 3px solid var(--deep);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 700 13px/1 var(--mono);
  color: var(--clay);
  margin-bottom: 8px;
}

/* ── references ──────────────────────────────────────────────────────── */

.refs {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .refs {
    grid-template-columns: repeat(2, 1fr);
  }
}
.ref {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--lime-dim);
  border-radius: 4px;
  padding: 14px 16px;
}
.ref a {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  word-break: break-all;
}
.ref-place {
  color: var(--muted);
  font-size: 14px;
  text-align: end;
}
.empty {
  background: var(--ink);
  color: var(--lime);
  border-radius: 6px;
  padding: 22px;
}
.empty p {
  margin: 0 0 14px;
  max-width: 44ch;
  color: rgb(244 241 230 / 82%);
}

/* ── map, behind consent ─────────────────────────────────────────────── */

.mapbox {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 520px;
  border: 1px solid var(--lime-dim);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
@media (min-width: 700px) {
  .mapbox {
    aspect-ratio: 16 / 9;
  }
}
.mapbox > .gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: repeating-linear-gradient(
      135deg,
      transparent 0 22px,
      rgb(17 58 76 / 4%) 22px 44px
    ),
    #fff;
}
.gate p {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 15px;
}
.gate button {
  font: 700 15px/1 var(--sans);
  padding: 13px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--deep);
  color: #fff;
  cursor: pointer;
}
/* The canvas app.js inserts. Named for the element it is, and deliberately not
   reusing a section id — an id shared with a <section> would make the whole
   section absolute and float it over the page. */
.mapbox > .map-canvas {
  position: absolute;
  inset: 0;
}
.leaflet-container {
  font: inherit;
}

/* ── contact + footer ────────────────────────────────────────────────── */

.contact {
  background: var(--deep);
  color: #fff;
}
.contact h2,
.contact .eyebrow {
  color: #fff;
}
.contact .eyebrow {
  color: var(--brass-lit);
}
.contact .sub {
  color: rgb(255 255 255 / 78%);
}
.contact a.mail {
  font-family: var(--mono);
  color: var(--brass-lit);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  padding: 22px var(--edge) 30px;
  background: var(--ink);
  font-size: 14px;
}
.legal-footer a,
.legal-footer button {
  color: rgb(242 206 133 / 88%);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ── photographic bands ──────────────────────────────────────────────────
 *
 * A band is a section whose background is one of the Oran photographs in
 * landing/media/. The photo always sits under a solid scrim of --ink so the
 * text contrast is a fixed, known value instead of something that depends on
 * how bright that particular picture is. The scrim is part of the same
 * background-image stack, not a second element, so there is nothing to stack
 * or mis-order.
 *
 * Widths are chosen per breakpoint: a phone never downloads the 1600px file.
 */
.band {
  position: relative;
  background-color: var(--ink);
  color: var(--lime);
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.band > .shell {
  position: relative;
}
.band .eyebrow {
  color: var(--brass-lit);
}
.band .sub,
.band .prose p {
  color: rgb(244 241 230 / 84%);
}

.band-hero::before {
  background-image: linear-gradient(rgb(11 26 36 / 72%), rgb(11 26 36 / 78%)),
    url("/img/hero-640.webp");
}
.band-offer::before {
  background-image: linear-gradient(rgb(11 26 36 / 80%), rgb(11 26 36 / 84%)),
    url("/img/section-offer-640.webp");
}
.band-why::before {
  background-image: linear-gradient(rgb(11 26 36 / 82%), rgb(11 26 36 / 86%)),
    url("/img/section-why-640.webp");
}
@media (min-width: 700px) {
  .band-hero::before {
    background-image: linear-gradient(rgb(11 26 36 / 70%), rgb(11 26 36 / 76%)),
      url("/img/hero-1024.webp");
  }
  .band-offer::before {
    background-image: linear-gradient(rgb(11 26 36 / 80%), rgb(11 26 36 / 84%)),
      url("/img/section-offer-1024.webp");
  }
  .band-why::before {
    background-image: linear-gradient(rgb(11 26 36 / 82%), rgb(11 26 36 / 86%)),
      url("/img/section-why-1024.webp");
  }
}
@media (min-width: 1200px) {
  .band-hero::before {
    background-image: linear-gradient(rgb(11 26 36 / 70%), rgb(11 26 36 / 76%)),
      url("/img/hero-1600.webp");
  }
  .band-offer::before {
    background-image: linear-gradient(rgb(11 26 36 / 80%), rgb(11 26 36 / 84%)),
      url("/img/section-offer-1600.webp");
  }
  .band-why::before {
    background-image: linear-gradient(rgb(11 26 36 / 82%), rgb(11 26 36 / 86%)),
      url("/img/section-why-1600.webp");
  }
}

/* Two adjacent bands would otherwise show the theme's hairline rule between
   two dark blocks, which reads as a seam. */
.band + .band {
  border-top: 0;
}

/* The watercolour texture, used as a quiet seam between light sections. */
.divider {
  height: 54px;
  background: url("/img/divider-640.webp") center / cover no-repeat;
  border-block: 1px solid var(--lime-dim);
}
@media (min-width: 700px) {
  .divider {
    height: 72px;
    background-image: url("/img/divider-1280.webp");
  }
}

/* ── why it matters ─────────────────────────────────────────────────────── */

.prose {
  max-width: 62ch;
}
.prose p {
  margin: 0 0 14px;
}
.prose p:last-child {
  margin-bottom: 0;
}

/* ── pricing renewal line ───────────────────────────────────────────────── */

.renewal {
  margin: 14px 0 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--lime-dim);
  border-inline-start: 5px solid var(--brass);
  border-radius: 4px;
  font-size: 15.5px;
}
.renewal strong {
  font-family: var(--mono);
  letter-spacing: -0.02em;
}

/* ── how it works: the process strips ───────────────────────────────────── */

.process {
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}
.process-strip {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--lime-dim);
  border-radius: 6px;
  background: #fff;
}

/* ── map: the pin motif behind the consent gate ─────────────────────────── */

.mapbox > .gate {
  background: linear-gradient(rgb(255 255 255 / 82%), rgb(255 255 255 / 88%)),
    url("/img/map-motif-640.webp") center / cover no-repeat;
}
@media (min-width: 700px) {
  .mapbox > .gate {
    background-image: linear-gradient(rgb(255 255 255 / 82%), rgb(255 255 255 / 88%)),
      url("/img/map-motif-1280.webp");
  }
}
/* ── card titles on a band ───────────────────────────────────────────────
 * The cards are white, the band around them is dark, and a card heading
 * inherited the band's light colour — unreadable on its own background. The
 * card is its own surface, so it sets its own text colours.
 */
.band .card h3 {
  color: var(--ink);
}
.band .card p {
  color: var(--muted);
}

/* ── the brandmark above the sign ───────────────────────────────────────── */

.brandmark {
  margin: 0 0 16px;
  text-align: center;
}
.brandmark img {
  width: 168px;
  max-width: 60%;
  height: auto;
  padding: 10px 16px;
  background: var(--lime);
  border-radius: 6px;
}
@media (min-width: 700px) {
  .brandmark img {
    width: 200px;
  }
}

/* ── "Made in Germany" mark under the feature cards ─────────────────────── */

.mig {
  margin: 22px 0 0;
  text-align: center;
}
.mig img {
  width: 200px;
  max-width: 70%;
  height: auto;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--lime-dim);
  border-radius: 4px;
}
@media (min-width: 700px) {
  .mig img {
    width: 240px;
  }
}
