/* routinyapp.com — every built page (the /sponsor pages and /advertise keep
   their own). Arabic first, right to left.
   The look is the app's own: blush paper, cocoa ink, rose-clay ribbons on
   cards with stitched (dashed) edges, tick circles, and the pastel task
   colours a girl picks for her cards. */
:root {
  --paper: #F7E6DE;
  --sheet: #FFF8F4;
  --ink: #4A2B2B;
  --ink-soft: #84655B;
  --clay: #C7745F;
  --clay-deep: #A85A47;
  --clay-soft: #EFCFC2;
  --stitch: #C9A397;
  --sky: #BFD9EA;
  --butter: #F3D9A4;
  --sage: #CCD0A6;
  --lilac: #DCD0EA;
  --rose: #F2C9CF;
  --sand: #EBDCCB;
  --star: #D99A2B;
  --display: 'Marhey', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.latin { direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 2.5px solid var(--clay-deep); outline-offset: 3px; border-radius: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Type ───────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.35; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.22; font-weight: 700; }
h2 { font-size: clamp(30px, 3.8vw, 42px); }
h3 { font-size: 22px; }
.lead { font-size: clamp(17.5px, 1.9vw, 20px); color: var(--ink-soft); max-width: 34em; }
section { padding: 84px 0; }
.sec-head { max-width: 640px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 10px; }
.sec-head.center { margin-inline: auto; text-align: center; align-items: center; }
.link { color: var(--clay-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.link:hover { color: var(--ink); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 16.5px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn.solid { background: var(--clay); color: #fff; }
.btn.solid:hover { background: var(--clay-deep); }
.btn.line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.line:hover { background: var(--ink); color: var(--paper); }
.btn.sm { padding: 8px 18px; font-size: 15px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1.5px dashed transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--stitch); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 24px; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.menu { display: flex; align-items: center; gap: 26px; margin-inline-start: auto; font-size: 16px; }
.menu a:not(.btn) { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.menu a:not(.btn):hover { border-bottom-color: var(--stitch); }
.menu a[aria-current] { border-bottom-color: var(--clay); font-weight: 600; }
.burger { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 1.5px dashed var(--stitch); background: var(--sheet); border-radius: 14px; cursor: pointer; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.burger span::before, .burger span::after { content: ''; position: absolute; inset-inline-start: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.top.open .burger span { background: transparent; }
.top.open .burger span::before { transform: translateY(6px) rotate(45deg); }
.top.open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ── The app's card: stitched edge, ribbon header, tick circles ─────── */
.stitched { background: var(--sheet); border: 2px dashed var(--stitch); border-radius: 26px; }
.ribbon {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--clay); color: #fff; font-family: var(--display); font-weight: 600; font-size: 19px;
  padding: 9px 26px 9px 40px; margin-inline-start: -2px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 16px 50%);
}
.ribbon.soft { background: var(--clay-soft); color: var(--ink); }
.tick {
  width: 30px; height: 30px; border-radius: 50%; flex: none; border: 2px solid var(--stitch);
  display: grid; place-items: center; background: #fff; transition: background .2s, border-color .2s;
}
.tick svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; transition: opacity .2s; }
.done .tick { background: var(--clay); border-color: var(--clay); }
.done .tick svg { opacity: 1; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 9.5em; }
.hero .lead { margin-top: 18px; }
.hero .ctas { margin-top: 30px; }
.proof { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-soft); font-size: 15px; }
.proof b { color: var(--ink); font-family: var(--display); font-size: 20px; font-weight: 700; margin-inline-end: 4px; }
.proof .stars { color: var(--star); letter-spacing: 1px; }
.stage { position: relative; min-height: 560px; }
.stage .phone { position: absolute; inset-inline-start: 0; top: 0; width: 262px; transform: rotate(-4deg); }
.today {
  position: absolute; inset-inline-end: 0; bottom: 18px; width: min(340px, 82%);
  padding: 0 0 18px; box-shadow: 0 30px 60px -34px rgba(74, 43, 43, .55); z-index: 2;
}
.today .ribbon { margin-top: 18px; }
.today ul { list-style: none; padding: 14px 18px 4px; display: flex; flex-direction: column; }
.today li + li { border-top: 1.5px solid #F0E0D8; }
.today button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 2px; background: none; border: 0;
  cursor: pointer; text-align: start; font-size: 16.5px;
}
.today .label { transition: color .2s; }
.today .done .label { color: #B79C93; text-decoration: line-through; text-decoration-color: var(--clay); }
.today .meta { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px 0; font-size: 14.5px; color: var(--ink-soft); }
.today .bar { height: 7px; border-radius: 7px; background: #F0E0D8; margin: 10px 20px 0; overflow: hidden; }
.today .bar i { display: block; height: 100%; width: 0; background: var(--clay); border-radius: 7px; transition: width .35s ease; }
.today .cheer { min-height: 1.6em; padding: 8px 20px 0; font-size: 15px; color: var(--clay-deep); font-weight: 600; }

/* Phone frame: the screen keeps its real 1080×2400 shape. */
.phone { border-radius: 40px; padding: 9px; background: #2B2224; box-shadow: 0 34px 60px -30px rgba(43, 34, 36, .6); }
.phone img { width: 100%; border-radius: 31px; }

/* ── Inside Routiny: the app's bottom bar as tabs ───────────────────── */
.inside { transition: background-color .35s ease; }
.inside[data-tint="routine"] { background: var(--rose); }
.inside[data-tint="ibada"] { background: var(--sage); }
.inside[data-tint="cycle"] { background: #F3CFD6; }
.inside[data-tint="focus"] { background: var(--lilac); }
.inside[data-tint="water"] { background: var(--sky); }
.inside[data-tint="care"] { background: var(--butter); }
.tabs {
  display: flex; gap: 6px; padding: 6px; background: var(--sheet); border-radius: 999px; width: max-content; max-width: 100%;
  margin: 0 auto 44px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 0; background: none;
  cursor: pointer; white-space: nowrap; font-size: 16px; color: var(--ink-soft); transition: background .2s, color .2s;
}
.tabs button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button[aria-selected="true"] { background: var(--clay); color: #fff; }
.panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.panel[hidden] { display: none; }
.panel .phone { width: 280px; margin: 0 auto; }
.panel .copy { display: flex; flex-direction: column; gap: 14px; }
.panel ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.panel li { display: flex; gap: 12px; align-items: center; }
.panel li .tick { width: 26px; height: 26px; background: var(--clay); border-color: var(--clay); }
.panel li .tick svg { width: 14px; height: 14px; opacity: 1; }
.panel .lead { color: var(--ink); opacity: .82; }

/* ── «اعملي روتينك» ─────────────────────────────────────────────────── */
.builder { max-width: 700px; margin: 0 auto; padding: 0 0 26px; }
.builder .head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline-end: 22px; margin-top: 20px; }
.dots { display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--stitch); transition: background .2s, border-color .2s; }
.dots i.on { background: var(--clay); border-color: var(--clay); }
.q { padding: 24px 26px 0; }
.q h3 { font-size: 26px; margin-bottom: 18px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: start; background: #fff;
  border: 2px solid #F0E0D8; border-radius: 18px; padding: 14px 16px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--clay); }
.opt .em { font-size: 24px; line-height: 1; }
.opt span { display: flex; flex-direction: column; line-height: 1.45; }
.opt b { font-weight: 600; }
.opt small { color: var(--ink-soft); font-size: 14px; }
.q .back { margin-top: 16px; background: none; border: 0; color: var(--ink-soft); cursor: pointer; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.q .back:hover { color: var(--ink); }
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.plan .stitched { padding-bottom: 12px; }
.plan .ribbon { margin-top: 14px; font-size: 17px; }
.plan ol { list-style: none; padding: 10px 16px 0; }
.plan li { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 8px 0; font-size: 15.5px; align-items: baseline; }
.plan li + li { border-top: 1.5px solid #F0E0D8; }
.plan .t { font-weight: 600; color: var(--clay-deep); font-size: 14px; white-space: nowrap; }
.result .sub { color: var(--ink-soft); margin: -8px 0 18px; }
.result .ctas { margin-top: 22px; }
.swap { animation: swap .28s ease both; }
@keyframes swap { from { opacity: 0; } to { opacity: 1; } }

/* ── Reviews: notes taped to the page ───────────────────────────────── */
.score { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-bottom: 44px; text-align: center; }
.score div { display: flex; flex-direction: column; align-items: center; }
.score b { font-family: var(--display); font-size: 54px; line-height: 1.15; font-weight: 700; }
.score .stars { color: var(--star); letter-spacing: 2px; font-size: 18px; }
.score small { color: var(--ink-soft); font-size: 15px; }
.notes { columns: 3 290px; column-gap: 26px; }
.note {
  position: relative; break-inside: avoid; margin: 0 0 30px; padding: 30px 24px 22px; border-radius: 6px 6px 18px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.note::before {
  content: ''; position: absolute; top: -11px; inset-inline-start: 50%; width: 92px; height: 24px; transform: translateX(50%) rotate(-3deg);
  background: rgba(255, 248, 244, .72); border-inline: 2px dashed rgba(201, 163, 151, .55);
}
.note:nth-child(5n+1) { background: var(--butter); }
.note:nth-child(5n+2) { background: var(--sky); }
.note:nth-child(5n+3) { background: var(--rose); }
.note:nth-child(5n+4) { background: var(--sage); }
.note:nth-child(5n+5) { background: var(--lilac); }
.note:nth-child(even)::before { transform: translateX(50%) rotate(4deg); }
.note q { quotes: '«' '»'; font-size: 17px; line-height: 1.75; }
.note q[dir="ltr"] { quotes: '“' '”'; display: block; text-align: left; }
.note footer { font-size: 14.5px; color: var(--ink-soft); display: flex; flex-direction: column; line-height: 1.5; }
.note footer b { color: var(--ink); font-weight: 600; }
.note .stars { color: var(--clay-deep); font-size: 14px; letter-spacing: 2px; }
.more-row { text-align: center; margin-top: 10px; }

/* ── FAQ: a stitched list, no boxes ─────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; border-top: 2px dashed var(--stitch); }
.faq details { border-bottom: 2px dashed var(--stitch); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-family: var(--display); font-weight: 600; font-size: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--stitch);
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform .2s, background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--clay-soft); }
.faq .a { padding: 0 4px 24px; color: var(--ink-soft); max-width: 40em; }
.faq .a a { color: var(--clay-deep); font-weight: 600; }

/* ── Download ribbon ────────────────────────────────────────────────── */
.get { padding: 40px 0 90px; }
.get .stitched { display: grid; grid-template-columns: auto 1fr auto; gap: 26px 32px; align-items: center; padding: 34px 38px; }
.get img.icon { width: 84px; height: 84px; border-radius: 22px; }
.get p { color: var(--ink-soft); margin-top: 4px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 16px;
  background: var(--ink); color: var(--paper); text-decoration: none; min-width: 176px; transition: background .15s;
}
.store:hover { background: var(--clay-deep); }
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.25; text-align: start; }
.store small { font-size: 12px; opacity: .8; }
.store b { font-size: 17px; font-weight: 600; direction: ltr; text-align: start; }

/* ── Inner pages ────────────────────────────────────────────────────── */
.page-head { padding: 56px 0 18px; }
.page-head .lead { margin-top: 14px; }
.page-head.center { text-align: center; }
.page-head.center .lead { margin-inline: auto; }
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; padding: 44px 0 30px; }
.intro .phone { width: 270px; margin: 0 auto; transform: rotate(3deg); }
.intro .ctas { margin-top: 26px; }
.intro .free { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 26px 0; }
.feature + .feature { border-top: 2px dashed var(--stitch); }
.feature:nth-child(even) .pic { order: -1; }
.feature .pic { border-radius: 30px; padding: 40px 0 0; overflow: hidden; height: 460px; display: flex; justify-content: center; }
.feature .pic .phone { width: 250px; border-radius: 38px 38px 0 0; padding-bottom: 0; align-self: flex-start; }
.feature .pic .phone img { border-radius: 29px 29px 0 0; }
.feature .copy { display: flex; flex-direction: column; gap: 12px; }
.feature ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.feature li { display: flex; gap: 12px; align-items: center; color: var(--ink-soft); }
.feature li .tick { width: 24px; height: 24px; background: var(--clay); border-color: var(--clay); }
.feature li .tick svg { width: 13px; height: 13px; opacity: 1; }
.t-rose { background: var(--rose); } .t-sage { background: var(--sage); } .t-pink { background: #F3CFD6; }
.t-lilac { background: var(--lilac); } .t-sky { background: var(--sky); } .t-butter { background: var(--butter); }
.facts { border-top: 2px dashed var(--stitch); }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 18px 2px; border-bottom: 2px dashed var(--stitch); }
.facts dt { font-family: var(--display); font-weight: 600; font-size: 18px; }
.facts dd { color: var(--ink-soft); }
.facts a { color: var(--clay-deep); font-weight: 600; }
.aside { margin-top: 36px; padding: 24px 26px; border-radius: 22px; background: var(--sand); }
.aside h3 { font-size: 20px; margin-bottom: 6px; }
.aside p { color: var(--ink-soft); }
.aside a { color: var(--clay-deep); font-weight: 600; }
.ways { border-top: 2px dashed var(--stitch); max-width: 820px; }
.ways > div { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; padding: 24px 2px; border-bottom: 2px dashed var(--stitch); }
.ways .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--clay-soft); color: var(--clay-deep); }
.ways .ic svg { width: 24px; height: 24px; fill: currentColor; }
.ways h3 { font-size: 21px; }
.ways p { color: var(--ink-soft); font-size: 16px; }
.english { direction: ltr; text-align: left; }
.english h2 { font-size: 28px; }
.english p { color: var(--ink-soft); margin-top: 10px; max-width: 46em; }
.english a { color: var(--clay-deep); font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.foot { border-top: 2px dashed var(--stitch); padding: 40px 0 44px; font-size: 15.5px; color: var(--ink-soft); }
.foot .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 22px 40px; align-items: center; }
.foot .brand { color: var(--ink); font-size: 21px; }
.foot .brand img { width: 32px; height: 32px; border-radius: 9px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot .social { display: flex; gap: 10px; }
.foot .social a { width: 42px; height: 42px; border-radius: 50%; border: 2px dashed var(--stitch); display: grid; place-items: center; color: var(--ink); }
.foot .social a:hover { border-style: solid; border-color: var(--clay); color: var(--clay-deep); }
.foot .social svg { width: 19px; height: 19px; fill: currentColor; }
.foot .bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14.5px; }

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

/* ── Smaller screens ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .burger { display: grid; }
  .menu {
    position: absolute; top: 70px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px dashed var(--stitch); padding: 6px 22px 22px; display: none;
  }
  .top.open .menu { display: flex; }
  .menu a:not(.btn) { padding: 13px 2px; border-bottom: 1.5px dashed #E3C9BF; font-size: 17.5px; }
  .menu a[aria-current] { border-bottom-color: #E3C9BF; color: var(--clay-deep); }
  .menu .btn { margin-top: 16px; }
  .hero .wrap, .panel, .intro, .feature { grid-template-columns: 1fr; }
  .hero .wrap { gap: 28px; }
  .stage { min-height: 520px; max-width: 520px; width: 100%; margin: 0 auto; }
  .feature:nth-child(even) .pic { order: 0; }
  .feature { gap: 26px; }
  .feature .pic { height: 400px; }
  .panel { gap: 30px; }
  .get .stitched { grid-template-columns: auto 1fr; }
  .get .stores { grid-column: 1 / -1; }
  .foot .wrap { grid-template-columns: 1fr auto; }
  .foot nav { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  section { padding: 60px 0; }
  .hero { padding-top: 22px; }
  .stage { min-height: 470px; }
  .stage .phone { width: 210px; padding: 7px; border-radius: 32px; }
  .stage .phone img { border-radius: 25px; }
  .today { width: 78%; bottom: 0; }
  .today button { font-size: 15.5px; padding: 9px 2px; }
  .tabs { width: 100%; border-radius: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .tabs button { justify-content: center; padding: 10px 6px; font-size: 15px; }
  .panel .copy { order: -1; }
  .panel .phone { width: 240px; }
  .options, .plan { grid-template-columns: 1fr; }
  .q { padding: 20px 18px 0; }
  .q h3 { font-size: 22px; }
  .get .stitched { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 30px 20px; }
  .get .stores { justify-content: center; }
  .store { flex: 1 1 150px; min-width: 0; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .ways > div { grid-template-columns: 48px 1fr; }
  .ways > div > a { grid-column: 2; justify-self: start; }
  .notes { column-gap: 0; }
}
