/* Horizon's site, in the same layout as Raufan's other product pages: large sentences in a 640 px
   column, key phrases in ink and the rest in grey, and a wide grid of cards and icons under them. */
:root {
  --ink: #111111;
  --grey: #8d8d8a;
  --line: rgba(0, 0, 0, 0.08);
  --soft: #f3f2ef;
  --page: #ffffff;
  --accent: #e07a1f;
  --column: 720px;
  --wide: 840px;
  --grid: 1100px;
}
:root:not([data-theme="light"]) { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }

/* Header */
/* The bar's glass spans the window; its contents keep to the column. */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, calc((100% - var(--column)) / 2 + 16px));
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 15px; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 20px;
  font-size: 15px; font-weight: 500; text-decoration: none; border: 0; cursor: pointer;
  font-family: inherit;
}
.pill.dark { background: var(--ink); color: #fff; }
.pill.light { background: var(--soft); color: var(--ink); }
/* Not open yet: shown, but quiet and not pressable. */
.pill.off { opacity: 0.38; cursor: default; }
.pill.small { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 16px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

/* Column and type */
.column { max-width: var(--column); margin: 0 auto; padding: 0 16px; }
.wide { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.grid-wide { max-width: var(--grid); margin: 0 auto; padding: 0 16px; }
.sub { font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; color: var(--grey); margin: 18px 0 0; }
.hero { padding-top: 56px; }
.hero .icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 30px -12px rgba(60, 30, 10, 0.45); margin-bottom: 28px; }
.lede {
  font-size: 33px; line-height: 1.3; font-weight: 500; letter-spacing: -0.022em;
  color: var(--grey); margin: 0;
}
.lede b { color: var(--ink); font-weight: 600; }
.lede + .lede { margin-top: 22px; }
.fine { font-size: 13px; color: var(--grey); margin: 12px 0 0; line-height: 1.5; }
.body { color: var(--grey); margin: 0; }
.body b { color: var(--ink); font-weight: 600; }
section, section.column, section.grid-wide { margin-top: 112px; }
section .lede { margin-bottom: 40px; }

/* The demo */
.demo {
  position: relative; overflow: hidden;
  border-radius: 24px; margin-top: 64px;
  height: 560px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 30px 60px -28px rgba(20, 20, 60, 0.55);
  user-select: none; -webkit-user-select: none; touch-action: none;
  transition: color 0.4s ease;
}
.demo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo .readout { position: absolute; left: 28px; top: 26px; right: 28px; pointer-events: none; }
.demo .place { font-size: 14px; font-weight: 500; }
.demo .hijri { font-size: 14px; opacity: 0.72; }
.demo .clock { font-size: 92px; font-weight: 300; letter-spacing: -0.02em; line-height: 1; margin-top: 18px; font-variant-numeric: proportional-nums; }
.demo .period { font-size: 24px; font-weight: 500; margin-top: 6px; }
.demo .next { position: absolute; left: 28px; right: 28px; bottom: 182px; display: flex; justify-content: space-between; font-size: 24px; font-weight: 500; pointer-events: none; }
.demo .next .dot { display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: var(--accent); margin-right: 10px; vertical-align: middle; position: relative; top: -3px; }
.demo .left { opacity: 0.8; }
.try { margin-top: 18px; }

/* Stories: soft tiles, each a picture on a quiet stage, then a bold first sentence and the rest in grey. */
.stories { display: grid; gap: 20px; }
.tile { background: var(--soft); border-radius: 30px; padding: 20px 20px 28px; display: grid; gap: 24px; align-content: start; }
.tile .body { padding: 0 6px; }
.stage {
  background: #e9e8e4; border-radius: 20px; height: 420px;
  display: grid; place-items: center; padding: 36px 24px; overflow: hidden;
}
.stage > * { width: 100%; max-width: 380px; }
.card {
  border-radius: 22px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 20px 44px -26px rgba(20, 20, 60, 0.45);
}

/* Story pictures */
.seasons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.season { border-radius: 18px; padding: 16px 16px 14px; color: #fbfaf6; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 0 0 1px rgba(0,0,0,0.05); }
.season .month { font-size: 13px; font-weight: 500; opacity: 0.8; }
.season .isha { font-size: 34px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; }
.season .isha small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; opacity: 0.8; margin-bottom: 2px; }
.season svg { width: 100%; height: 56px; }
.dec { background: linear-gradient(#141a3d, #3a3f72 60%, #8a6a86); }
.jun { background: linear-gradient(#2b2a4c, #a2483f 62%, #f0803c); }

.rain { height: 300px; background: linear-gradient(#3f4a55, #5b6771 55%, #7f8b93); color: #fbfaf6; padding: 22px 24px; }
.rain .line { position: absolute; left: 24px; bottom: 22px; font-size: 15px; font-weight: 500; }
.rain .rainbar { display: flex; gap: 3px; align-items: flex-end; height: 14px; margin-top: 6px; }
.rain .rainbar span { display: block; width: 4px; border-radius: 2px; background: rgba(251, 250, 246, 0.7); }
.rain .drop { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.55), rgba(255,255,255,0.08) 60%, rgba(255,255,255,0.18)); box-shadow: inset 0 -1px 2px rgba(255,255,255,0.25), 0 1px 2px rgba(0,0,0,0.15); }
.rain .run { position: absolute; width: 2px; border-radius: 1px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0.22)); }

.hold { background: linear-gradient(#93acb8, #d9b98a 60%, #efa95a); padding: 22px 22px; color: #10141c; }
.hold .row { display: flex; align-items: center; height: 40px; font-size: 16px; padding: 0 12px; border-radius: 20px; }
.hold .row span:nth-child(3) { margin-left: auto; font-variant-numeric: tabular-nums; }
.hold .row span:nth-child(4) { width: 104px; text-align: right; font-size: 13px; opacity: 0.75; }
.hold .row.passed { opacity: 0.55; }
.hold .row.on { background: rgba(255, 255, 255, 0.55); box-shadow: 0 1px 2px rgba(0,0,0,0.08), inset 0 0 0 0.5px rgba(255,255,255,0.8); font-weight: 600; }
.hold .row .dot { width: 6px; height: 6px; border-radius: 3px; margin-right: 8px; background: transparent; flex: none; }
.hold .row.next .dot { background: var(--accent); }

.sheet-pic { background: linear-gradient(#a9c6de, #e6dec8 60%, #f5dfa8); padding: 120px 18px 18px; }
.sheet {
  border-radius: 30px; padding: 22px 22px 18px; text-align: center;
  background: rgba(255, 255, 255, 0.62); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 0 0.5px rgba(255,255,255,0.9) inset, 0 16px 40px -20px rgba(0,0,0,0.3);
}
.sheet .eyebrow { font-size: 13px; opacity: 0.7; }
.sheet .title { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; margin: 6px 0 16px; }
.sheet .btn { height: 48px; border-radius: 24px; background: #10141c; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 15px; }
.sheet .note { font-size: 13px; opacity: 0.7; margin-top: 12px; }

.lock { background: linear-gradient(#1c2247, #0e1430 40%, #070a17); color: #fbfaf6; padding: 26px 18px 18px; text-align: center; }
.lock .date { font-size: 15px; font-weight: 500; opacity: 0.85; }
.lock .inline { font-size: 13px; opacity: 0.8; margin-top: 2px; }
.lock .big { font-size: 78px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; }
.lock .activity { margin-top: 26px; border-radius: 22px; overflow: hidden; text-align: left; padding: 14px 18px 16px; color: #fbfaf6; background: linear-gradient(#2b2a4c, #a2483f 70%, #f0803c); }
.lock .activity .top { display: flex; justify-content: space-between; align-items: baseline; }
.lock .activity .name { font-size: 15px; font-weight: 500; }
.lock .activity .name i { display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: var(--accent); margin-right: 7px; position: relative; top: -2px; }
.lock .activity .time { font-size: 40px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; }
.lock .activity .left { font-size: 15px; font-weight: 500; text-align: right; }
.lock .activity .left small { display: block; font-size: 12px; font-weight: 400; opacity: 0.8; }
.lock .activity .glass { height: 4px; border-radius: 2px; background: rgba(251, 250, 246, 0.22); margin-top: 12px; }
.lock .activity .glass b { display: block; height: 100%; width: 62%; border-radius: 2px; background: var(--accent); }

/* Numbers */
.numbers { display: grid; gap: 16px; }
#private .note { max-width: calc(var(--column) - 32px); margin: 40px auto 0; }
.number { background: var(--soft); border-radius: 26px; padding: 28px 28px 30px; }
.number .big { font-size: 64px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.number .what { margin-top: 6px; color: var(--grey); }
.number .what b { color: var(--ink); font-weight: 600; }

/* Maker: a small round portrait sits in the sentence, as on RoboDust. */
.avatar { display: inline-block; vertical-align: -6px; }
.avatar img { border-radius: 50%; outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
@media (min-width: 1100px) { .avatar img { width: 38px; height: 38px; } }
.maker { display: flex; gap: 0; align-items: baseline; flex-wrap: wrap; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--grey); font-weight: 400; transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--grey); margin: 10px 0 2px; }

/* Ending */
.ending, section.ending { margin-top: 128px; }
.foot, footer.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--grey); padding-top: 48px; padding-bottom: 48px; margin: 96px auto 0; }
.foot .links { display: flex; gap: 16px; }
.foot a { text-decoration: none; }

/* Privacy page */
.prose { padding-top: 56px; }
.prose h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 48px 0 10px; }
.prose p, .prose li { color: #4a4a47; }
.prose b { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose .lede { color: var(--grey); }

@media (min-width: 860px) {
  .stories { grid-template-columns: 1fr 1fr; gap: 24px; }
  /* The fifth tile takes the whole row: its picture beside its words. */
  .tile:last-child { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .tile:last-child .body { padding: 0 24px 0 0; }
}
@media (min-width: 720px) {
  .numbers { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .demo { height: 600px; }
}
@media (max-width: 480px) {
  .lede { font-size: 27px; }
  .sub { font-size: 18px; }
  .tile { padding: 12px 12px 22px; border-radius: 26px; }
  .stage { height: auto; min-height: 320px; padding: 24px 14px; }
  .demo { height: 540px; margin-left: -4px; margin-right: -4px; }
  .demo .clock { font-size: 76px; }
  .demo .next { font-size: 20px; }
  .number .big { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Anchors land below the sticky header. */
[id] { scroll-margin-top: 72px; }

/* Icon grid, as on RoboDust: a soft tile with a line icon, then a title and a sentence. */
.grid3 { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 0; }
.grid3 .item h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.grid3 .item p { margin: 0; color: var(--grey); }
.grid3 .icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #f4f4f2; margin-bottom: 14px; }
.grid3 .icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Over a grid, the big sentence keeps to the header's column, and the grid runs wider, as on RoboDust. */
.grid-wide > .lede { max-width: calc(var(--column) - 32px); margin: 0 auto 56px; }
@media (min-width: 720px) { .grid3 { grid-template-columns: repeat(3, 1fr); gap: 44px 40px; } }

/* Large screens: bigger sentences and a taller sky. */
@media (min-width: 1100px) {
  .lede { font-size: 38px; }
  .demo { height: 640px; }
}
