/* Page around the examples: Quinto Ponto Cardeal colours, neutral phone frames. */
:root {
  --bg: #F4EFE3;
  --surface: #FFFDF8;
  --screen: #FFFFFF;
  --ink: #0B1220;
  --muted: #4A5468;
  --line: #DCD2BD;
  --accent: #85560A;
  --gold: #C28A2B;
  --link: #1D4E89;
  --chat: #EDE6DA;
  --bubble-in: #FFFFFF;
  --bubble-out: #E2EFD9;
  --guide: rgba(214, 40, 70, .42);
  --focus: #C28A2B;
  --shadow: 0 18px 40px -26px rgba(11, 18, 32, .45);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1220; --surface: #121B2E; --screen: #0E1525; --ink: #EEF1F6; --muted: #A7B0C2; --line: #2A3650;
    --accent: #E8B04B; --gold: #E8B04B; --link: #8DB8F0; --chat: #0F1B18; --bubble-in: #1A2436; --bubble-out: #1E3A2B;
    --focus: #E8B04B; --shadow: 0 18px 40px -26px rgba(0, 0, 0, .8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1220; --surface: #121B2E; --screen: #0E1525; --ink: #EEF1F6; --muted: #A7B0C2; --line: #2A3650;
  --accent: #E8B04B; --gold: #E8B04B; --link: #8DB8F0; --chat: #0F1B18; --bubble-in: #1A2436; --bubble-out: #1E3A2B;
  --focus: #E8B04B; --shadow: 0 18px 40px -26px rgba(0, 0, 0, .8); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 16px; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 "Hanken Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 88px; /* room for the back button the company site adds */
}
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; line-height: 1.08; }
h4, h5 { margin: 0; }
a { color: var(--link); }
p { margin: 0 0 .7em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .86rem; color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 12px; }

button, select, input { font: inherit; color: inherit; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .85rem; font-weight: 600; }
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.icon { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }

/* header */
.top { padding-top: 26px; padding-bottom: 8px; position: relative; }
.controls { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.controls select { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: .9rem; }
.kicker { margin: 18px 0 6px; color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.top h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 14px; max-width: 18ch; }
.lead { max-width: 68ch; font-size: 1.06rem; }
.notice { display: inline-block; border: 1px solid var(--gold); border-radius: 10px; padding: 8px 12px; font-size: .9rem; background: var(--surface); }

/* tabs and guides */
.toolbar { display: grid; gap: 14px; padding: 18px 0 8px; }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.biz-pick { display: none; gap: 6px; font-weight: 700; font-size: .92rem; }
.biz-pick select { width: 100%; min-height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 12px; font-size: 1rem; font-weight: 600; }
[role="tab"] {
  display: flex; gap: 10px; align-items: center; text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 8px 12px 8px 8px; min-height: 64px;
}
[role="tab"]:hover { border-color: var(--muted); }
[role="tab"][aria-selected="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.tab-mark svg { width: 44px; height: 44px; display: block; }
.tab-text { display: grid; line-height: 1.25; min-width: 0; }
.tab-text b { font-size: .98rem; }
.tab-text small { color: var(--muted); font-size: .8rem; }
.guides-box { display: flex; gap: 6px 18px; align-items: baseline; flex-wrap: wrap; }
.guides-box .small { margin: 0; max-width: 80ch; }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
@media (max-width: 1100px) { .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* on phones eleven tabs would push the examples far down: a grouped select takes their place */
@media (max-width: 640px) { .tabs { display: none; } .biz-pick { display: grid; } }

.panel { padding: 10px 0 20px; }
.panel:focus-visible { outline-offset: 6px; }
.panel h2, .general h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 6px; }

/* brand card */
.brand { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 10px 0 26px; }
.brand .mark svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.sector { font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.brand-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 10px 0 0; font-size: .86rem; }
.brand-meta dt { font-weight: 700; }
.brand-meta dd { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }
.hex { font-variant-numeric: tabular-nums; color: var(--muted); margin-right: 6px; }
@media (max-width: 760px) { .brand { grid-template-columns: 1fr; } }

/* week */
.week { margin-bottom: 26px; }
.days { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-width: 0; }
.day h3 { font-size: 1.15rem; margin: 0 0 6px; }
.day ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.day a { display: grid; text-decoration: none; color: var(--ink); border-radius: 8px; padding: 6px; background: var(--bg); font-size: .82rem; line-height: 1.3; }
.day a:hover { outline: 1px solid var(--gold); }
.day .time { font-weight: 700; font-variant-numeric: tabular-nums; }
.day .plat { color: var(--accent); font-weight: 600; }
.day .what { color: var(--muted); overflow-wrap: anywhere; }
.day.rest { opacity: .85; }
.day.rest p { font-size: .82rem; margin: 0 0 4px; }
@media (max-width: 1100px) { .days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .days { grid-template-columns: 1fr; } }

.jump { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; font-size: .9rem; }
.jump span { font-weight: 700; }
.jump a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: none; background: var(--surface); }

/* platform sections */
.platform { padding: 18px 0 26px; border-top: 1px solid var(--line); }
.platform > .muted { max-width: 72ch; }
.frames { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin-top: 14px; }
.with-script { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; flex: 1 1 620px; }

/* neutral phone frame */
.phone { width: 320px; max-width: 100%; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 10px 10px 12px; box-shadow: var(--shadow); flex: none; }
.ph-label { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 2px 10px 8px; font-size: .78rem; }
.ph-plat { font-weight: 800; letter-spacing: .02em; }
.ph-fmt { color: var(--muted); text-align: right; }
.ph-screen { background: var(--screen); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.ph-profile { display: flex; gap: 8px; align-items: center; padding: 9px 12px; }
.ph-avatar svg { width: 32px; height: 32px; display: block; }
.ph-who { display: grid; line-height: 1.2; font-size: .84rem; min-width: 0; }
.ph-who small { color: var(--muted); font-size: .74rem; }
.media { position: relative; overflow: hidden; }
.media svg { display: block; width: 100%; height: 100%; }
.r45 { aspect-ratio: 4 / 5; } .r916 { aspect-ratio: 9 / 16; } .r169 { aspect-ratio: 16 / 9; } .r11 { aspect-ratio: 1 / 1; }
.caption { padding: 10px 12px 12px; font-size: .85rem; line-height: 1.45; }
.caption.top { padding-top: 2px; }
.caption p { margin: 0 0 .5em; }
.tags { color: var(--link); margin: 0; overflow-wrap: anywhere; }
.count { font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.count.over { color: #B3261E; font-weight: 700; }
.ph-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 6px 0; flex-wrap: wrap; }
.ph-when { font-size: .78rem; color: var(--muted); }
.ph-note { font-size: .78rem; color: var(--muted); margin: 8px 6px 0; }
.bare .ph-screen { position: relative; background: #000; }
.bar-top { position: absolute; z-index: 2; left: 10px; right: 10px; top: 8px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.bar-top i { display: block; width: 38%; height: 100%; border-radius: 3px; background: rgba(255, 255, 255, .9); }
.carousel { position: relative; }
.car-nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 0; }
.car-pos { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-card { padding: 0 0 10px; font-size: .85rem; }
.post-card p, .post-card h3 { padding: 0 12px; }
.post-card h3 { font: 700 .98rem/1.3 "Hanken Grotesk", system-ui, sans-serif; margin: 10px 0 4px; }
.post-card p { margin: 6px 0 0; }

/* chat */
.chat { background: var(--chat); padding: 0 10px 12px; }
.chat-head { margin: 0 -10px 6px; background: var(--screen); border-bottom: 1px solid var(--line); }
.bubble { max-width: 88%; padding: 8px 10px; border-radius: 12px; margin: 10px 0 0; font-size: .85rem; line-height: 1.42; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.bubble.in { background: var(--bubble-in); border-top-left-radius: 4px; }
.bubble.out { background: var(--bubble-out); margin-left: auto; border-top-right-radius: 4px; }
.bubble.solo { max-width: 94%; }
.bubble .who { display: block; font-size: .72rem; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.quick { padding: 10px 12px 12px; font-size: .84rem; }
.quick h3 { font: 700 .9rem/1.3 "Hanken Grotesk", system-ui, sans-serif; margin: 0 0 6px; }
.quick dl { margin: 0 0 8px; display: grid; gap: 6px; }
.quick dt { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: .8rem; color: var(--accent); }
.quick dd { margin: 0; }
.quick .muted { font-size: .76rem; margin: 0; }

/* guides: what the grid crop and the app bars hide */
.guide { position: absolute; inset: 0; pointer-events: none; display: none; }
body.show-guides .guide { display: block; }
.guide::before, .guide::after { content: ""; position: absolute; background: var(--guide); }
.g-grid45::before, .g-grid45::after { top: 0; bottom: 0; width: 3.125%; }
.g-grid45::before { left: 0; border-right: 2px dashed #fff; } .g-grid45::after { right: 0; border-left: 2px dashed #fff; }
.g-grid916::before, .g-grid916::after { left: 0; right: 0; height: 12.5%; }
.g-grid916::before { top: 0; border-bottom: 2px dashed #fff; } .g-grid916::after { bottom: 0; border-top: 2px dashed #fff; }
.g-safe::before, .g-safe::after, .g-tiktok::before, .g-tiktok::after { left: 0; right: 0; }
.g-safe::before, .g-tiktok::before { top: 0; height: 13%; }
.g-safe::after { bottom: 0; height: 17.7%; }
.g-tiktok::after { bottom: 0; height: 20.8%; }
.g-tiktok { background: linear-gradient(to left, var(--guide) 14.8%, transparent 14.8%); }

/* script beside the video covers */
.script { flex: 1 1 260px; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.script h3 { font: 700 1rem/1.3 "Hanken Grotesk", system-ui, sans-serif; margin: 0 0 8px; }
.script ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.script li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; font-size: .86rem; border-top: 1px solid var(--line); padding-top: 10px; }
.script li:first-child { border-top: 0; padding-top: 0; }
.script .tc { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.script p { margin: 0 0 4px; }
.script .ost { font-weight: 600; }
.script .lbl { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* plan */
.plan { border-top: 1px solid var(--line); padding: 18px 0 10px; }
.plan dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 12px 0 0; }
.plan dl > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.plan dt { font-weight: 800; margin-bottom: 6px; color: var(--accent); }
.plan dd { margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .plan dl { grid-template-columns: 1fr; } }

/* general sections */
.general { border-top: 1px solid var(--line); padding: 22px 0 10px; }
.prose { max-width: 74ch; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 10px 0; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; min-width: 640px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-top: 1px solid var(--line); }
thead th { border-top: 0; color: var(--muted); font-size: .8rem; }
tbody th { font-weight: 700; white-space: nowrap; }
td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }

.foot { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 20px; font-size: .88rem; color: var(--muted); }

.toast { position: fixed; right: 16px; bottom: 16px; margin: 0; max-width: min(360px, calc(100vw - 32px)); background: var(--ink); color: var(--bg); border-radius: 12px; padding: 10px 14px; font-size: .88rem; box-shadow: var(--shadow); }
.toast:empty { display: none; }

@media (max-width: 520px) {
  .wrap { padding: 0 14px; }
  .phone { width: 100%; }
  .with-script { flex-basis: 100%; }
  .script { max-width: none; }
  .script li { grid-template-columns: 54px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
