/* Shway Shway site. One stylesheet, no build step. */

@font-face {
  font-family: "Reem Kufi";
  src: url("fonts/reem-kufi-arabic-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC;
}
@font-face {
  font-family: "Reem Kufi";
  src: url("fonts/reem-kufi-arabic-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC;
}

:root {
  --green: #1f4d3a;
  --red: #c9562f;
  --black: #151515;
  --cream: #f3ead7;

  --bg: var(--black);
  --card: #1e1e1d;
  --card-edge: #2c2c2a;
  --green-deep: #173a2c;
  --text: var(--cream);
  --muted: #b9b1a0;          /* cream, dimmed: 8:1 on the page background */
  --accent-text: #ee8a63;    /* earth red, lifted for small text on black: 7:1 */
  --green-text: #86cfa6;     /* green, lifted for small text on black */
  --radius: 24px;
  --gutter: 20px;
  --max: 1120px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --arabic: "Reem Kufi", "Geeza Pro", "Segoe UI", "Noto Naskh Arabic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; border-radius: 6px; }

.ar { font-family: var(--arabic); font-weight: 700; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--black); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 6.7vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-size: 1.06rem; line-height: 1.65; color: var(--muted); max-width: 34em; }
.eyebrow { color: var(--green-text); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; margin-bottom: 0.7rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(21, 21, 21, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--card-edge); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 800; font-size: 1rem; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .ar { font-size: 1.05rem; color: var(--green-text); }
.brand .dot { color: var(--muted); font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.site-nav a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 6px 2px; }
.site-nav a:hover { color: var(--accent-text); }
.site-nav a[aria-current="page"] { color: var(--accent-text); }

/* Buttons */
.btn {
  display: inline-block; background: var(--red); color: var(--cream); text-decoration: none;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  padding: 12px 22px; border-radius: 999px; border: 0; transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #d9623a; color: var(--cream); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 2px solid var(--card-edge); color: var(--cream); }
.btn-ghost:hover { background: var(--card); border-color: var(--muted); }

/* Hero */
.hero { padding: 48px 0 32px; background: radial-gradient(900px 500px at 85% 20%, rgba(31, 77, 58, 0.55), transparent 70%); }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 1.4rem; }
.hero .fine { color: var(--muted); font-size: 0.88rem; }

/* Sections */
section { padding: 48px 0; }
.section-head { margin-bottom: 26px; max-width: 40em; }
.section-head p { color: var(--muted); font-size: 1rem; margin-top: 0.7em; }
.band { background: var(--green-deep); }
.band .section-head p, .band .muted { color: #cfd9c8; }

/* The name */
.name { text-align: center; }
.name .big-ar { font-size: clamp(3rem, 12vw, 5.2rem); color: var(--cream); line-height: 1.9; margin: 0 0 0.1em; padding-top: 0.1em; }
.name .meaning { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 700; margin: 0 0 0.7em; }
.name p { max-width: 36em; margin-left: auto; margin-right: auto; }
.say { display: inline-block; margin-top: 0.3em; padding: 8px 18px; font-size: 0.92rem; border: 1px solid #3a6a55; border-radius: 999px; color: #e8f2e6; font-weight: 600; }

/* Cards */
.grid { display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; line-height: 1.6; }
.band .card { background: #1c4333; border-color: #2d6049; }
.band .card p { color: #d4dccb; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; font-size: 0.9rem; border-radius: 50%; background: var(--red); color: var(--cream); font-weight: 800; margin-bottom: 12px; }

/* Plans */
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan .price { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan .free { color: var(--green-text); }
.plan .days { font-weight: 700; color: var(--cream); font-size: 0.88rem; }
.plan .save { align-self: flex-start; background: var(--red); color: var(--cream); font-weight: 800; font-size: 0.78rem; padding: 3px 11px; border-radius: 999px; }
.plan-all { border-color: var(--red); grid-column: 1 / -1; }
@media (min-width: 640px) { .plan-all { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 32px; } .plan-all h3 { margin: 0; } .plan-all .save { order: -1; } }
.fine-print { color: var(--muted); font-size: 0.85rem; margin-top: 16px; }

/* CTA */
.cta-block { text-align: center; }
.cta-block h2 { margin-bottom: 0.4em; }
.cta-block p { color: #cfd9c8; max-width: 30em; margin: 0 auto 1.3rem; font-size: 1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--card-edge); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; }
.site-footer .brand-line { color: var(--cream); font-weight: 800; }
.site-footer .brand-line .ar { color: var(--green-text); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer nav a { color: var(--cream); text-decoration: none; font-weight: 600; padding: 4px 0; font-size: 0.9rem; }
.site-footer nav a:hover { color: var(--accent-text); }
.copy { margin-top: 18px; font-size: 0.85rem; }

/* Text pages (FAQ, privacy, support) */
.page-head { padding: 22px 0 24px; background: var(--green-deep); border-bottom: 1px solid #2d6049; }
.page-head h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.page-head p { color: #d4dccb; font-size: 0.98rem; max-width: 34em; margin: 0.4em 0 0; }
.page-head .eyebrow { color: var(--green-text); margin: 0 0 0.35rem; }
.page-head a { color: #f0b49c; }
.prose { max-width: 46em; padding: 32px 0 64px; }
.prose h2 { font-size: 1.3rem; margin: 0 0 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5em; }
.prose .box { background: #1c4333; border: 1px solid #2d6049; border-radius: 14px; padding: 16px 20px; margin: 0; }
.prose .box p { color: #e3ead9; }
.prose .box a { color: #f0b49c; }
.prose .box p:last-child { margin-bottom: 0; }
.updated { color: var(--muted); font-size: 0.88rem; margin: 0 0 1.2em; }

.qa, .pcard { background: #222220; border: 1px solid #333330; border-radius: 18px; padding: 22px 24px; margin-bottom: 14px; }
.pcard > :last-child { margin-bottom: 0; }
.pcard .qa h2 { font-size: 1.05rem; margin: 0 0 0.5em; letter-spacing: -0.005em; }
.qa p:last-child { margin-bottom: 0; }

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero { padding: 64px 0 48px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
    .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 639px) {
  .site-header .wrap { justify-content: center; }
  .site-nav { justify-content: center; gap: 2px 14px; }
  .site-nav .store-sm { display: none; }
  .brand { font-size: 0.98rem; }
  section { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- App Store badge (Apple's official artwork, left unmodified) ---------- */
.store { display: inline-block; line-height: 0; border-radius: 10px; }
.store img { display: block; height: auto; }
.store:hover { opacity: 0.88; }

/* ---------- Feature sections: text beside a screenshot, alternating sides ---------- */
.feature, .hero { padding: 56px 0; }
.alt { background: #1a1a19; border-top: 1px solid var(--card-edge); border-bottom: 1px solid var(--card-edge); }
.feature-grid { display: grid; gap: 32px; align-items: center; }
.copy-col h2 { margin-bottom: 0.6em; }
.copy-col > p { color: var(--muted); max-width: 34em; }
.band .copy-col > p, .band .copy-col li { color: #d4dccb; }
.copy-col strong { color: var(--cream); }

.media { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.shot { margin: 0; width: min(290px, 78vw); flex: 0 0 auto; border-radius: 34px; border: 6px solid #0a0a0a; outline: 1px solid rgba(243, 234, 215, 0.14); background: #000; box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; }
.hero .shot { width: min(300px, 78vw); }
.media.pair .shot { width: 44vw; max-width: 250px; }
.shot.watch { width: min(190px, 40vw); border-radius: 30%; border-width: 5px; }
.media.pair .shot.watch { width: 33vw; max-width: 190px; }
.media > .shot.watch { width: min(230px, 62vw); }
.media.pair .shot.watch { margin-bottom: 36px; }

.ticks, .steps, .principles { margin: 0 0 1em; padding: 0; list-style: none; }
.ticks li, .steps li, .principles li { position: relative; margin-bottom: 0.9em; color: var(--muted); font-size: 0.97rem; line-height: 1.6; }
.ticks li { padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.steps, .principles { counter-reset: n; }
.steps li, .principles li { padding-left: 46px; }
.steps li::before, .principles li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--cream); font-weight: 800; font-size: 0.85rem; }

.plans-grid { display: grid; gap: 12px; margin-top: 1.4rem; }
.plans-grid .plan { padding: 18px; }
.plans-grid .plan p { font-size: 0.92rem; }
.copy-col .fine-print { color: #cfd9c8; }

@media (min-width: 640px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .feature, .hero { padding: 80px 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .flip .media { order: -1; }
  .hero .feature-grid { grid-template-columns: 1.1fr 0.9fr; }
  .media.pair .shot { width: 250px; }
  .shot { width: 300px; }
  .hero .shot { width: 310px; }
  .media.pair .shot.watch { width: 180px; }
  .media > .shot.watch { width: 260px; }
}

/* Footer: one quiet line pointing to the medical note */
.site-footer .med { margin: 18px 0 0; font-size: 0.85rem; }
.site-footer .med a { color: var(--muted); text-decoration: none; }
.site-footer .med a:hover { color: var(--accent-text); text-decoration: underline; }

/* Support: the medical note section */
.pcard.medical { scroll-margin-top: 84px; }
.pcard.medical p { line-height: 1.65; }

/* Hero: iPhone with the Watch beside it, the phone slightly in front */
.hero-pair { align-items: flex-end; gap: 0; }
.hero-pair .shot { position: relative; }
.media.hero-pair .shot { width: 46vw; max-width: 260px; z-index: 2; }
.media.hero-pair .shot.watch { width: 32vw; max-width: 190px; margin: 0 0 40px 10px; z-index: 1; }
@media (min-width: 900px) {
  .media.hero-pair .shot { width: 280px; max-width: none; }
  .media.hero-pair .shot.watch { width: 200px; max-width: none; margin: 0 0 56px 18px; }
}
