/* Presentation chrome for the picker and showcase pages. It stays neutral so the three directions do the talking. */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@400;700;800&display=swap');

:root {
  --bg: #F2F3F5;
  --ink: #121417;
  --ink-2: #4A4F57;
  --line: #DCDFE4;
  --card: #FFFFFF;
  --focus: #003299;
  --phone-w: 390px;
  --phone-h: 844px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { margin: 0; font-family: 'Almarai', system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
::selection { background: #003299; color: #fff; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap { width: min(1440px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

/* top bar */
.deck-bar { position: sticky; top: 0; z-index: 10; background: rgba(242, 243, 245, .94); border-bottom: 1px solid var(--line); }
.deck-bar .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.deck-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; margin-inline-end: auto; }
.deck-brand small { font-weight: 400; color: var(--ink-2); font-size: 14px; }
.seg { display: inline-flex; background: #E6E8EC; border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.seg [aria-current="true"], .seg [aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(18, 20, 23, .12); }
.btn-quiet { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-quiet:hover { border-color: #B9BEC6; }
.btn-ink { border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 20px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-ink:hover { background: #2A2E34; }

/* headings */
h1, h2, h3 { margin: 0; line-height: 1.3; text-wrap: balance; }
.deck-h1 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -0.01em; max-width: 18ch; }
.deck-sub { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 62ch; margin: 14px 0 0; }
.sec-h { font-size: 24px; font-weight: 800; }
.sec-sub { color: var(--ink-2); margin: 4px 0 0; font-size: 15px; }

/* phone frame: the iframe renders at true 390x844 and is scaled down */
.phone { --s: .72; width: calc(var(--phone-w) * var(--s) + 20px); flex: none; }
.phone-body { position: relative; width: calc(var(--phone-w) * var(--s) + 20px); height: calc(var(--phone-h) * var(--s) + 20px); background: #0E0F11; border-radius: calc(54px * var(--s) + 10px); padding: 10px; box-shadow: 0 18px 40px -18px rgba(18, 20, 23, .45), 0 2px 6px rgba(18, 20, 23, .12); }
.phone-screen { position: relative; width: calc(var(--phone-w) * var(--s)); height: calc(var(--phone-h) * var(--s)); border-radius: calc(46px * var(--s)); overflow: hidden; background: #fff; }
.phone-screen iframe { position: absolute; top: 0; left: 0; width: var(--phone-w); height: var(--phone-h); border: 0; transform: scale(var(--s)); transform-origin: 0 0; }
.phone-label { text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-top: 12px; }

/* browser frame for the website */
.browser { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(18, 20, 23, .35); }
.browser-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #F7F8FA; direction: ltr; }
.browser-top i { width: 11px; height: 11px; border-radius: 50%; background: #D5D8DD; display: block; }
.browser-url { flex: 1; margin-inline-start: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); padding: 4px 14px; max-width: 420px; }
.scaled { position: relative; overflow: hidden; }
.scaled iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip-sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(18, 20, 23, .14); display: inline-block; }

.note { color: var(--ink-2); font-size: 14px; }
