/* getmawed.com landing. Colours are brand/README.md's, nothing else.
   Font: Readex Pro, self-hosted (web/fonts, SIL OFL 1.1).
   Plus gold appears only where Plus is named (the share step). */
@font-face { font-family: "Readex Pro"; src: url("/fonts/readex-pro-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("/fonts/readex-pro-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("/fonts/readex-pro-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #FAF9FC; --surface: #FFFFFF; --soft: #F0EEF6; --line: #E4E1EE;
  --ink: #1A1B2E; --muted: #42426F; --faint: #5A5B77;
  --accent: #F08A8A; --on-accent: #1A1B2E; --peach: #FFD6C9; --violet: #6D5BA6;
  --frame: #1A1B2E;
  --plus-text: #6B5410; --plus-chip: #FBF0D2; --plus-border: #EBD28A;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B10; --surface: #15151B; --soft: #1D1D25; --line: #292933;
    --ink: #F2F2F5; --muted: #ABAFBD; --faint: #828795;
    --violet: #B4AEDC; --frame: #292933; --peach: #312A2C;
    --plus-text: #F3C64B; --plus-chip: #2A2312; --plus-border: #4A3F1C;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip {
  position: absolute; inset-inline-start: 8px; top: -48px; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px;
}
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* The delivered mark: navy on light, the white one on dark (brand §1). */
.mark-dark { display: none; }
@media (prefers-color-scheme: dark) { .mark-light { display: none; } .mark-dark { display: block; } }

/* 1. Header */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand img { width: 34px; height: auto; }
nav.main { display: none; gap: 22px; margin-inline-start: auto; }
nav.main a { text-decoration: none; color: var(--muted); font-weight: 500; }
nav.main a:hover { color: var(--ink); }
.lang { margin-inline-start: auto; color: var(--muted); font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 760px) { nav.main { display: flex; } .lang { margin-inline-start: 0; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 12px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn[aria-disabled="true"] { background: var(--soft); color: var(--muted); border: 1px dashed var(--line); cursor: default; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: .95rem; }

/* 2. The hero: one screen, no pinning. The 3D stage (the phone and its
   cards) and the headline share it — stacked on a phone, side by side on
   a desktop. Its height is the screen's; nothing holds the page. */
.hero {
  display: grid; grid-template-rows: minmax(180px, 1fr) auto;
  min-height: calc(100svh - 60px); padding: 8px 16px 24px; gap: 8px;
}
.stage { position: relative; pointer-events: none; min-height: 180px; }
.stage .view { position: absolute; inset: 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.stage.live canvas { opacity: 1; }
.stage.live .fallback { opacity: 0; }
.fallback { position: absolute; inset: 0; transition: opacity .6s ease; }
.hero-text h1 { font-size: clamp(1.7rem, 6.4vw, 2.9rem); line-height: 1.25; margin: 0 0 10px; font-weight: 700; }
.hero-text p { margin: 0; color: var(--muted); }
.hero .stage { grid-row: 1; }
.hero .hero-text { grid-row: 2; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.note { color: var(--faint); font-size: .9rem; margin-top: 12px; }
.plus-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--plus-chip); border: 1px solid var(--plus-border); color: var(--plus-text);
  font-weight: 600; font-size: .85rem; vertical-align: middle;
}
.plus-chip svg { width: 12px; height: 12px; }

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.05fr; grid-template-rows: none; column-gap: 32px;
    height: calc(100svh - 60px); min-height: 560px; max-width: 1200px;
    margin: 0 auto; padding: 0 24px; align-items: center;
  }
  .hero .hero-text { grid-row: 1; grid-column: 1; max-width: 30rem; }
  .hero .stage { grid-row: 1; grid-column: 2; height: 100%; }
}

/* 3. Features: five items, each with its own real screen; the section is
   as tall as its content. */
.feature-list { display: grid; gap: 20px; }
.feature { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: start; align-content: start; }
.feature .phone { width: 104px; border-radius: 20px; padding: 5px; box-shadow: none; }
.feature .phone img { border-radius: 15px; }
.feature .phone::after { top: 9px; height: 8px; border-radius: 6px; }
.feature h3 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 6px; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); }
.feature p + p { margin-top: 6px; }
.feature small { display: block; margin-top: 8px; color: var(--faint); font-size: .88rem; }
.kicker { color: var(--violet); font-weight: 500; font-size: .9rem; margin: 0 0 2px; }
@media (min-width: 900px) {
  .feature-list { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .feature { grid-template-columns: 1fr; }
  .feature .phone { width: 150px; border-radius: 26px; padding: 7px; margin-inline: auto; }
  .feature .phone img { border-radius: 20px; }
  .feature .phone::after { top: 12px; height: 11px; }
}

/* The fallback phone: pure CSS, the screenshot inside. Shown until the 3D
   scene draws, and for good when WebGL is missing. */
.phone {
  position: relative; width: min(230px, 52vw); aspect-ratio: 1290 / 2796;
  border-radius: 40px; padding: 10px; background: var(--frame);
  box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--violet) 45%, transparent);
}
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 20px;
  transform: translateX(-50%); background: var(--frame); border-radius: 14px;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; background: var(--soft); }
/* In the stage the phone is sized by the stage's height: it sits between
   the stage's top and bottom, its width following from the ratio. */
.fallback .phone {
  position: absolute; top: 4%; bottom: 4%; left: 50%; transform: translateX(-50%);
  width: auto; height: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage canvas, .fallback { transition: none; }
}

/* Sections */
/* Sections: at most 56px top and bottom on a phone, 88px on a desktop. */
section.block { padding: 48px 0; }
@media (min-width: 900px) { section.block { padding: 80px 0; } }
section.block h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: 0 0 8px; font-weight: 600; }
section.block .lede { color: var(--muted); margin: 0 0 28px; max-width: 40rem; }

/* 3. Screenshots carousel */
.carousel { position: relative; }
.track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 20px; scrollbar-width: thin;
}
.slide { flex: 0 0 auto; scroll-snap-align: center; text-align: center; margin: 0; }
.slide .phone { width: 200px; border-radius: 34px; padding: 9px; }
.slide .phone img { border-radius: 26px; }
.slide .phone::after { top: 17px; height: 16px; }
.slide figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.controls { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.controls button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1.2rem; cursor: pointer;
}

/* 4. How it works */
.steps-list { display: grid; gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .steps-list { grid-template-columns: repeat(3, 1fr); } }
.how { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.how::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--peach); color: var(--ink); font-weight: 600;
}
.how h3 { margin: 12px 0 6px; font-size: 1.1rem; font-weight: 600; }
.how p { margin: 0; color: var(--muted); }

/* 5. Download CTA */
.cta { background: var(--soft); border-radius: 24px; padding: 36px 22px; text-align: center; }
.cta h2 { margin-top: 0; }
.cta .actions { justify-content: center; }

/* 6. Footer */
footer.site { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); }
footer.site .cols { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { footer.site .cols { grid-template-columns: repeat(4, 1fr); } }
footer.site h3 { margin: 0 0 8px; color: var(--ink); font-size: 1rem; font-weight: 600; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 0 0 6px; }
footer.site a { text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .copy { margin-top: 26px; font-size: .9rem; color: var(--faint); }
