/* 23studios.io: the website. Same tokens, glass cards and buttons as the app
   (app.css loads first); only the page layout lives here. */
/* As wide as 1160px, plus half of what's left beside it on bigger screens (up to 1600px). */
.ws { max-width: min(1600px, calc(580px + 50vw)); margin: 0 auto; padding: 0 24px; font-size: 16px; }
.ws h1, .ws h2, .ws h3 { color: var(--brand); letter-spacing: -0.025em; }
.ws h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 800; }
.ws p { margin: 0; }
.ws .btn { margin-top: 0; }
.ws-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ws-eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px !important; }
.ws-lead { color: var(--text-muted); font-size: 18px; line-height: 1.6; max-width: 560px; }
.ws-lead.center, .ws-note.center { margin: 12px auto 0; text-align: center; }
.ws-note { color: var(--text-muted); font-size: 13.5px; margin-top: 12px !important; }
.ws-small { color: var(--text-muted); font-size: 12.5px; }

/* nav */
.ws-nav { display: flex; align-items: center; gap: 24px; padding: 22px 0; }
.ws-logo { padding: 0; }
.ws-logo .logo-mark { width: 40px; height: 38px; }
.ws-links { display: flex; gap: 28px; margin-left: auto; font-weight: 600; font-size: 15px; }
.ws-links a { color: var(--text); }
.ws-links a:hover { color: var(--accent); }
.ws-nav-cta { white-space: nowrap; }
.ws-links a { white-space: nowrap; }
/* too narrow for the menu links next to the button: they go (Log in is in the footer too) */
@media (max-width: 880px) { .ws-links { display: none; } .ws-theme { margin-left: auto; } }
/* ...and sit behind a menu button instead, in a panel under the bar (js/ws-menu.js) */
.ws-menu-btn, .ws-menu { display: none; }
@media (max-width: 880px) {
  .ws-menu-btn { display: grid; place-content: center; gap: 4px; width: 38px; height: 38px; flex: none; padding: 0; border-radius: 50%;
    border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
  .ws-menu-btn span { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
  .ws-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .ws-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .ws-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .ws-menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: grid; gap: 2px; padding: 8px !important; }
  .ws-menu[hidden] { display: none; }
  .ws-menu a:not(.btn) { padding: 14px 16px; border-radius: 14px; font-weight: 600; font-size: 16px; color: var(--text); }
  .ws-menu a:not(.btn):hover, .ws-menu a[aria-current="page"] { background: var(--glow-glass); color: var(--accent); }
  .ws-menu .ws-menu-cta { display: none; }
}
/* small phones: the button moves into the menu */
@media (max-width: 379px) { .ws-nav-cta { display: none; } .ws-menu .ws-menu-cta { display: block; text-align: center; margin-top: 6px; } }
.ws-theme { flex: none; }

/* hero */
.ws-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 48px 0 88px; }
.ws-hero h1 { font-size: clamp(40px, 4.9vw, 68px); line-height: 1.02; font-weight: 800; margin: 0 0 22px; }
.ws-hero h1 > span { display: block; white-space: nowrap; }
.ws-hero h1 .ws-accent { color: var(--accent); }
.ws-join { margin-top: 28px; max-width: 520px; }
.ws-join-row { display: flex; gap: 8px; padding: 6px; border-radius: var(--radius-pill); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--glass-edge), var(--shadow); }
.ws-join-row input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 10px 16px; font: inherit; color: var(--text); outline: none; }
.ws-join-row .btn { white-space: nowrap; padding: 12px 22px; }
.ws-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.ws-consent input { margin-top: 3px; flex: 0 0 auto; }
.ws-join .cf-turnstile { margin-top: 12px; }
.ws-soon { margin-top: 24px !important; font-weight: 600; }

/* hero art: a Delivery Page in a browser, with two notes floating by */
.ws-hero-art { position: relative; padding: 24px 0 40px; }
.ws-browser { border-radius: 20px !important; overflow: hidden; padding: 0; }
.ws-browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.ws-browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.ws-browser-bar em { margin-left: 12px; font-style: normal; font-size: 12px; color: var(--text-muted); }
.ws-dp { padding: 28px 28px 24px; text-align: center; }
.ws-dp-small { font-size: 9.5px; font-weight: 600; letter-spacing: .2em; color: var(--text-muted); margin-top: 8px !important; }
.ws-dp-names { font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; margin: 10px 0 6px !important; color: var(--text); }
.ws-dp-meta { font-size: 13px; color: var(--text-muted); }
.ws-dp-films { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 22px; text-align: left; }
.ws-film { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--field-bg); border: 1px solid var(--border); }
.ws-film div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ws-film strong { font-size: 14px; }
.ws-film small { color: var(--text-muted); font-size: 12px; }
.ws-play { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 11px; flex: 0 0 auto; }
.ws-play.muted { background: var(--border); color: var(--text-muted); font-size: 14px; }
.ws-bar { display: block; height: 4px; border-radius: 4px; background: var(--border); margin-top: 6px; overflow: hidden; }
.ws-bar b { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.ws-dp-extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px;
  border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); text-align: left; }
.ws-dp-extra div { display: flex; flex-direction: column; }
.ws-dp-extra small { color: var(--text-muted); font-size: 12px; }
.ws-price { font-weight: 800; color: var(--accent); }
.ws-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px !important; border-radius: 16px !important; font-size: 13.5px; }
.ws-float div { display: flex; flex-direction: column; }
.ws-float small { color: var(--text-muted); font-size: 12px; }
.ws-float-a { left: -36px; bottom: 0; }
.ws-float-b { right: -20px; top: 0; }
.ws-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: 0 0 auto; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.ws-dot.orange { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* pills, as in the app */
.ws-pill { display: inline-block; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--border); color: var(--text); white-space: nowrap; }
.ws-pill.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: color-mix(in srgb, var(--ok) 70%, var(--text)); }
.ws-pill.warm { background: color-mix(in srgb, #c9864a 18%, transparent); color: color-mix(in srgb, #a0612a 80%, var(--text)); }
.ws-pill.blue { background: color-mix(in srgb, var(--blue) 26%, transparent); color: var(--blue-ink); }
.ws-pill.orange { background: var(--accent-soft); color: var(--accent); }

/* the problem */
.ws-pains { padding: 40px 0 72px; text-align: center; }
.ws-pains h2 { max-width: 720px; margin: 0 auto 32px; }
.ws-pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.ws-pain-grid .card { padding: 22px; }
.ws-pain-grid strong { display: block; font-size: 16px; margin-bottom: 8px; }
.ws-pain-grid p { color: var(--text-muted); font-size: 14.5px; }

/* features */
.ws-features { display: grid; gap: 96px; padding: 48px 0 80px; }
.ws-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ws-flip .ws-feature-text { order: 2; }
.ws-feature h2 { margin-bottom: 20px; }
.ws-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ws-ticks li { position: relative; padding-left: 30px; color: var(--text-muted); line-height: 1.55; }
.ws-ticks li strong { color: var(--text); }
.ws-ticks li em { color: var(--accent); font-style: normal; font-weight: 700; }
.ws-ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A00' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ws-feature-art { padding: 20px !important; }
.ws-mini-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; font-size: 16px; }
.ws-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 124px; gap: 12px; align-items: center; padding: 13px 8px; border-top: 1px solid var(--border); font-size: 14px; }
.ws-row span { color: var(--text-muted); text-align: left; }
.ws-row em { justify-self: end; }
.ws-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.ws-packs div { display: flex; flex-direction: column; gap: 4px; padding: 18px 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--field-bg); }
.ws-packs strong { font-family: Georgia, serif; font-weight: 400; font-size: 19px; }
.ws-packs span { color: var(--text-muted); font-size: 13px; }
.ws-packs .pick { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ws-flow { display: flex; flex-direction: column; align-items: stretch; padding: 24px !important; }
.ws-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--field-bg); font-size: 14px; }
.ws-flow i { display: block; width: 2px; height: 18px; margin: 0 auto; background: var(--border); }

/* the sum */
.ws-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 24px 0 96px; }
.ws-sum-text p { color: var(--text-muted); font-size: 17px; margin-top: 16px !important; }
.ws-sum-table { padding: 12px 24px 20px !important; }
.ws-sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.ws-sum-row em { font-style: normal; font-weight: 600; white-space: nowrap; }
.ws-sum-row.total { border-bottom: 0; color: var(--text-muted); }
.ws-sum-row.total em { text-decoration: line-through; text-decoration-color: var(--accent); }
.ws-sum-row.ours { padding: 14px 16px; margin: 4px -12px 12px; border-radius: 12px; border: 0; background: var(--accent-soft); font-weight: 700; }
.ws-sum-row.ours em { color: var(--accent); font-weight: 800; }

/* pricing */
.ws-pricing { padding: 24px 0 96px; text-align: center; }
.ws-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; text-align: left; align-items: start; }
.ws-plan { position: relative; padding: 28px !important; display: flex; flex-direction: column; gap: 6px; }
.ws-plan.popular { border: 2px solid var(--accent) !important; }
.ws-plan-tag { position: absolute; top: -12px; left: 28px; background: var(--accent) !important; color: var(--on-accent) !important; }
.ws-plan h3 { font-size: 20px; }
.ws-plan-price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px !important; }
.ws-plan-price small { font-size: 15px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.ws-plan ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; font-size: 14.5px; }
.ws-plan li { padding-left: 24px; position: relative; }
.ws-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.ws-plan .btn { margin-top: auto; }

/* founder, questions, last call */
.ws-founder { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding: 48px !important; margin-bottom: 96px; }
.ws-founder h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.ws-founder p:not(.ws-eyebrow) { color: var(--text-muted); font-size: 16.5px; line-height: 1.65; max-width: 680px; }
.ws-founder-mark .logo-mark { display: block; width: 120px; height: 112px; }
.ws-faq { max-width: 760px; margin: 0 auto 96px; }
.ws-faq h2 { text-align: center; margin-bottom: 28px; }
.ws-faq details { border-bottom: 1px solid var(--border); padding: 18px 4px; }
.ws-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ws-faq summary::-webkit-details-marker { display: none; }
.ws-faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 20px; line-height: 1; }
.ws-faq details[open] summary::after { content: "–"; }
.ws-faq details p { color: var(--text-muted); margin-top: 10px !important; line-height: 1.65; }
.ws-cta { text-align: center; padding: 56px 24px !important; margin-bottom: 64px; display: flex; flex-direction: column; align-items: center; }
.ws-cta > p { color: var(--text-muted); font-size: 17px; margin-top: 10px !important; }
.ws-cta .ws-join { width: 100%; text-align: left; }
.ws-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 32px 0 48px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.ws-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.ws-foot nav a { color: var(--text); font-weight: 600; }
.ws-foot > p { width: 100%; }

@media (max-width: 960px) {
  .ws-hero, .ws-feature, .ws-sum { grid-template-columns: minmax(0, 1fr); gap: 40px; }  /* minmax: may shrink below the example's own width */
  .ws-flip .ws-feature-text { order: 0; }
  .ws-pain-grid { grid-template-columns: 1fr 1fr; }
  .ws-plans { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .ws-float-a { left: 8px; }
  .ws-float-b { right: 8px; }
  .ws-features { gap: 72px; }
}
@media (max-width: 640px) {
  .ws { padding: 0 16px; font-size: 15px; }
  .ws-hero { padding: 24px 0 56px; }
  .ws-join-row { flex-direction: column; border-radius: 22px; }
  .ws-join-row .btn { width: 100%; }
  .ws-pain-grid { grid-template-columns: 1fr; }
  .ws-dp { padding: 22px 16px; }
  .ws-float { font-size: 12.5px; padding: 10px 12px !important; }
  .ws-float-a { left: -4px; bottom: 4px; }
  .ws-float-b { right: -4px; top: 0; }
  /* the date or source goes under the name instead of disappearing */
  .ws-row { grid-template-columns: 1fr auto; grid-template-areas: "name pill" "meta pill"; row-gap: 2px; }
  .ws-row strong { grid-area: name; }
  .ws-row span { grid-area: meta; font-size: 12.5px; }
  .ws-row em { grid-area: pill; }
  .ws-founder { grid-template-columns: 1fr; padding: 28px !important; gap: 20px; }
  .ws-founder-mark .logo-mark { width: 64px; height: 60px; }
  .ws-sum-row.ours { margin: 4px -8px 12px; }
}

/* the "New lead" card floats over the example page's address bar where the hero column is narrow */
@media (max-width: 640px), (min-width: 961px) and (max-width: 1100px) { .ws-browser-bar em { display: none; } }

/* the example couple's page, as a real Delivery Page: the header photo on top, fading into the same
   photo blurred behind everything, with the names below it */
.ws-dp-photo { position: relative; padding: 0; overflow: hidden; isolation: isolate; text-align: center; }
.ws-dp-photo::before { content: ""; position: absolute; inset: -60px; z-index: -2; background: var(--photo) center / cover; filter: blur(40px) saturate(105%); }
.ws-dp-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--page-base) 58%, transparent); }
.ws-dp-head { aspect-ratio: 16 / 6.6; max-width: 100%; background: var(--photo) center 40% / cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.ws-dp-intro { padding: 4px 24px 6px; margin-top: -18px; position: relative; }
.ws-dp-logo { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 17px; }
.ws-dp-intro .ws-dp-small { color: var(--text); margin-top: 14px !important; }
.ws-dp-photo .ws-dp-names { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(36px, 4.4vw, 54px);
  letter-spacing: .01em; margin: 6px 0 4px !important; }
.ws-dp-photo .ws-dp-meta { letter-spacing: .04em; font-size: 12.5px; }
.ws-dp-rule { display: block; width: 36px; height: 1px; margin: 14px auto 0; background: var(--text-muted); }
.ws-dp-body { padding: 16px 24px 22px; }
.ws-dp-body .ws-dp-films { margin-top: 0; }
.ws-dp-photo .ws-film, .ws-dp-photo .ws-dp-extra { background: color-mix(in srgb, var(--page-base) 62%, transparent); }
@media (max-width: 640px) {
  .ws-dp-intro { padding: 0 14px 4px; }
  .ws-dp-body { padding: 14px 14px 18px; }
}

/* other website pages (integrations, terms, privacy): the same bar and footer around their own content */
.ws-page { padding: 24px 0 80px; margin: 0 auto; }
.ws-page.public-apps { max-width: 980px; }
.ws-page.legal { max-width: 760px; }
.ws-legal-links { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.ws-legal-links a { color: var(--text-muted); }
.ws-legal-links a[aria-current="page"], .ws-links a[aria-current="page"] { color: var(--accent); }
.ws-page .legal-body { font-size: 15px; }
.ws-page h2 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.ws-page .int-group { margin: 36px 0 14px; }
.ws-page .public-intro h1, .ws-page .public-title { font-size: clamp(32px, 4vw, 44px); font-weight: 800; }

/* ---------- more glass: warm light behind the page, see-through panes on top ---------- */
:root[data-mode="light"] {
  --ws-glass: linear-gradient(140deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .22));
  --ws-glass-soft: rgba(255, 255, 255, .38);
  --ws-glass-line: rgba(255, 255, 255, .75);
  --ws-glass-shadow: inset 1px 1px 0 rgba(255, 255, 255, .95), inset -1px -1px 0 rgba(255, 255, 255, .35), 0 18px 50px rgba(90, 50, 20, .10);
  --ws-glow-a: rgba(255, 90, 0, .26);
  --ws-glow-b: rgba(217, 208, 199, .85);
}
:root[data-mode="dark"] {
  --ws-glass: linear-gradient(140deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03));
  --ws-glass-soft: rgba(255, 255, 255, .06);
  --ws-glass-line: rgba(255, 255, 255, .14);
  --ws-glass-shadow: inset 1px 1px 0 rgba(255, 255, 255, .12), inset -1px -1px 0 rgba(255, 255, 255, .03), 0 18px 50px rgba(0, 0, 0, .40);
  --ws-glow-a: rgba(255, 90, 0, .26);
  --ws-glow-b: rgba(217, 208, 199, .12);
}
html:has(.ws) { overflow-x: clip; }
.ws { position: relative; isolation: isolate; }
/* the glow behind the page: the whole width of the window, also on wide screens (no edge) */
.ws::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; pointer-events: none;
  background:
    radial-gradient(32rem 26rem at 76% 300px, var(--ws-glow-a), transparent 70%),
    radial-gradient(26rem 22rem at 4% 1000px, var(--ws-glow-b), transparent 70%),
    radial-gradient(30rem 24rem at 96% 1700px, var(--ws-glow-a), transparent 70%),
    radial-gradient(28rem 24rem at 8% 2500px, var(--ws-glow-a), transparent 70%),
    radial-gradient(30rem 24rem at 90% 3300px, var(--ws-glow-b), transparent 70%),
    radial-gradient(34rem 26rem at 30% 4200px, var(--ws-glow-a), transparent 70%),
    radial-gradient(30rem 24rem at 80% 5200px, var(--ws-glow-b), transparent 70%); }

/* every pane: frosted, with a light edge */
.ws .card, .ws-nav, .ws-join-row, .ws-faq details {
  background: var(--ws-glass); border: 1px solid var(--ws-glass-line); box-shadow: var(--ws-glass-shadow);
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%); }
.ws .card { border-radius: 22px; }

/* the menu bar floats as a glass pill */
.ws-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 10; margin-top: 14px;
  padding: 10px 12px 10px 22px; border-radius: var(--radius-pill); }

/* small parts inside the panes: a softer layer of glass */
.ws-film, .ws-step, .ws-packs div, .ws-dp-photo .ws-film, .ws-dp-photo .ws-dp-extra {
  background: var(--ws-glass-soft); border-color: var(--ws-glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ws-row { border-top-color: var(--ws-glass-line); }

/* questions: one glass pane each */
.ws-faq { display: grid; gap: 10px; }
.ws-faq h2 { margin-bottom: 18px; }
.ws-faq details { border-radius: 18px; padding: 18px 22px; }
.ws-faq details[open] { background: var(--ws-glass), color-mix(in srgb, var(--accent) 6%, transparent); }

.ws-plan.popular { box-shadow: var(--ws-glass-shadow), 0 0 0 4px var(--accent-soft) !important; }
.ws-sum-row { border-bottom-color: var(--ws-glass-line); }
.ws-foot { border-top: 0; margin-top: 8px; }
@media (max-width: 640px) {
  .ws-nav { padding: 8px 8px 8px 16px; gap: 12px; }
}
/* the menu bar a little wider than the page itself; the logo stays in line with the text below */
@media (min-width: 1240px) { .ws-nav { margin-inline: -32px; padding-left: 32px; padding-right: 14px; } }
@media (min-width: 881px) and (max-width: 1239px) { .ws-nav { margin-inline: -14px; padding-left: 14px; } }

/* menu bar: the links are pills, with one glass blob gliding under the pointer (js/ws-nav-blob.js), as in the app's sidebar */
.ws-links { gap: 4px; position: relative; }
.ws-links a { position: relative; z-index: 1; padding: 8px 14px; border-radius: var(--radius-pill); transition: color .3s ease; }
.ws-links a:hover, .ws-links a[aria-current="page"] { color: var(--accent); }
.ws-links:not(.has-blob) a:hover { background: var(--glow-glass); box-shadow: var(--glow-shadow); }
.ws-blob { position: absolute; left: 0; top: 0; bottom: 0; width: 0; z-index: 0; opacity: 0; pointer-events: none;
  border-radius: var(--radius-pill); background: var(--glow-glass); box-shadow: var(--glow-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  transition: opacity .2s ease; }

/* menu links to a part of the page: glide there, and stop just below the floating menu bar */
@media (prefers-reduced-motion: no-preference) { html:has(.ws) { scroll-behavior: smooth; } }
.ws [id] { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 104px); }

/* integrations, on the home page */
.ws-integrations { padding: 16px 0 96px; }
.ws-integrations h2 { margin-bottom: 12px; }
.ws-integrations .ws-lead { margin-bottom: 28px; }
.ws-integrations .int-card { padding: 20px !important; }

/* the brochure example, like a real Booking Brochure: header photo fading into the same photo blurred */
.ws-feature-art.ws-dp-photo { padding: 0 !important; }
.ws-brochure .ws-dp-names { font-size: clamp(32px, 3.6vw, 44px); }
.ws-br-sub { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 16px; color: var(--text-muted); }
.ws-br-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; margin: 2px 0 14px !important; }
.ws-brochure .ws-packs { margin-top: 0; }
.ws-brochure .ws-packs div { padding: 14px 8px; }
.ws-brochure .ws-packs strong { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 21px; }
.ws-brochure .ws-packs small { color: var(--text-muted); font-size: 11.5px; line-height: 1.45; margin-top: 4px; }
.ws-brochure .ws-dp-extra { margin-top: 12px; }
@media (max-width: 640px) { .ws-brochure .ws-packs { grid-template-columns: 1fr; } }
.ws-brochure::after { background: color-mix(in srgb, var(--page-base) 62%, transparent); }

/* the example page's films, as on a real Delivery Page: how far along they are together, then one opened with its player */
.ws-dp-overall { text-align: left; margin: 2px 2px 14px; }
.ws-dp-overall p { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin: 0 0 7px !important; }
.ws-dp-overall .ws-bar { margin-top: 0; height: 5px; }
.ws-dp-card { text-align: left; padding: 16px 16px 14px; margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--ws-glass-line);
  background: var(--ws-glass-soft); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ws-dp-title { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.1; margin: 0 !important; }
.ws-dp-status { display: flex; align-items: center; gap: 6px; margin: 7px 0 3px !important; font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: color-mix(in srgb, var(--ok) 75%, var(--text)); }
.ws-dp-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ws-dp-note { font-size: 12.5px; color: var(--text-muted); margin: 0 0 9px !important; }
.ws-dp-foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 12px; color: var(--text-muted); }
.ws-dp-foot span { margin-right: auto; }
.ws-dp-foot em { font-style: normal; font-weight: 700; font-size: 11.5px; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); white-space: nowrap; }
.ws-dp-player { position: relative; display: grid; place-items: center; margin-top: 10px; aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden;
  background: var(--still) 46% 35% / cover; }
.ws-dp-playbtn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ws-dp-playbtn svg { width: 18px; height: 18px; margin-left: 2px; }
.ws-dp-cast { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: var(--radius-pill);
  font-size: 10.5px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .16); border: 1px solid rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ws-dp-cast svg { width: 12px; height: 12px; }

/* integrations on the home page: their logos floating in space, sharp in front, out of focus further back */
.ws-integrations { text-align: center; }
.ws-integrations .ws-lead { margin-left: auto; margin-right: auto; }
:root { --ws-orb-shadow: rgba(90, 45, 15, .22); }
:root[data-mode="dark"] { --ws-orb-shadow: rgba(0, 0, 0, .55); }
.ws-space { position: relative; height: 380px; max-width: 980px; margin: 0 auto; --k: .75; }
.ws-space::before { content: ""; position: absolute; inset: 12% 18%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-soft), transparent); filter: blur(30px); }
.ws-orb { position: absolute; left: var(--x); top: var(--y); width: calc(var(--size) * var(--k)); aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
.ws-orb .int-logo { width: 100%; height: 100%; border-radius: 26%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 calc(var(--size) * var(--k) * .16) calc(var(--size) * var(--k) * .36) var(--ws-orb-shadow); }
.ws-orb .int-logo-mark { width: 54%; height: 54%; background: var(--ink, #fff); }
/* white tiles (Notion, Typeform): a hairline edge so they don't melt into the light page */
.ws-orb.light .int-logo, .ws-orb .int-logo.is-icon { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07),
  0 calc(var(--size) * var(--k) * .16) calc(var(--size) * var(--k) * .36) var(--ws-orb-shadow); }
.ws-orb .int-logo-mark.is-wide { width: 74%; height: 74%; }
.ws-orb.front { z-index: 4; }
.ws-orb.mid { z-index: 3; }
.ws-orb.back { z-index: 2; opacity: .9; }
.ws-orb.far { z-index: 1; opacity: .45; }
/* the blur sits on the same layer that drifts, so Safari moves it without redrawing it */
.ws-orb.mid .int-logo { filter: blur(1px); }
.ws-orb.back .int-logo { filter: blur(2.2px); }
.ws-orb.far .int-logo { filter: blur(8px); }
/* one full up-and-down per loop, ending where it starts: no visible restart */
@media (prefers-reduced-motion: no-preference) {
  .ws-orb .int-logo { animation: ws-drift var(--t, 18s) ease-in-out var(--d, 0s) infinite; will-change: transform; backface-visibility: hidden; }
}
@keyframes ws-drift { 0%, 100% { transform: translate3d(0, -7px, 0); } 50% { transform: translate3d(0, 7px, 0); } }
.ws-space-more { margin: 8px 0 0 !important; font-weight: 600; }
@media (max-width: 640px) {
  .ws-space { height: 290px; --k: .47; }
}

/* the example page is taller than the words beside it: on wide screens the words start at the top and stay in view */
@media (min-width: 961px) {
  .ws-hero { align-items: start; }
  .ws-hero-text { position: sticky; top: 140px; padding-top: 72px; }
}

/* the phone/tablet menu panel: inside the frosted bar it can't blur the page behind, so it is nearly solid */
.ws .ws-menu { background: var(--page-base); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 22px; }

/* integration cards on the website: a little more room between logo + name and the text */
.ws .int-card .int-head + .field-hint { margin-top: 12px; }

/* the smallest phones: the opened film's buttons wrap instead of running off the screen */
.ws-dp-foot { flex-wrap: wrap; row-gap: 6px; }

/* Wide screens: the examples (Delivery Page, brochure...) get the larger share of their row. */
@media (min-width: 1240px) {
  .ws-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .ws-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .ws-feature.ws-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }  /* the example comes first there */
}
