/* The Chrome extension page. Same world, a little more colourful: the themes room takes
   on the colours of whichever theme you pick. */

body.no-tabbar { --tabbar-clearance: 0px; }
.no-tabbar .footer { padding-bottom: 40px; }

.keycap { display: inline-grid; place-items: center; flex: none; min-width: 1.5em; height: 1.72em; border-radius: 0.32em; background: var(--card); color: var(--ink); font-family: var(--font-display); font-size: 1.125rem; font-weight: 750; line-height: 1; box-shadow: 0 2px 0 rgb(var(--shadow-ink) / 0.26), 0 6px 14px rgb(var(--shadow-ink) / 0.1); }

.browser { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 0.5px var(--card-edge), var(--lift-3); overflow: hidden; margin: 0; }
.browser-bar { display: flex; gap: 7px; padding: 12px 14px; background: var(--well); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--hair-strong); }
.browser img { width: 100%; background: var(--well); }

.x-head { max-width: 720px; }
.x-head h2 { font-size: var(--t-3xl); }
.x-head p { margin-top: 14px; max-width: 52ch; font-size: var(--t-lg); line-height: 1.4; color: var(--ink-2); }

/* Hero */
.x-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); min-height: min(100svh, 860px); padding-block: clamp(92px, 12svh, 128px) 48px; }
.x-free { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: var(--t-md); font-weight: 650; }
.x-free b { padding: 2px 10px; border-radius: 999px; background: var(--live-soft); color: var(--live-deep); font-size: var(--t-sm); font-weight: 700; }
.x-hero h1 { margin-top: 18px; font-size: var(--t-3xl); letter-spacing: -0.03em; }
.x-lead { margin-top: 18px; max-width: 42ch; font-size: var(--t-lg); line-height: 1.4; color: var(--ink-2); }
.x-hero .actions { margin-top: 26px; }
.x-fine { margin-top: 14px; font-size: var(--t-sm); color: var(--ink-3); }
.x-hero-shot { rotate: 1.4deg; transition: rotate 700ms var(--spring-soft); }
@media (hover: hover) { .x-hero-shot:hover { rotate: 0deg; } }

/* Flow */
.x-flow { padding-block: clamp(48px, 7vw, 96px); }
.x-flow-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); margin-top: clamp(24px, 4vw, 44px); }
.x-flow-shot figcaption { padding: 10px 16px 12px; font-size: var(--t-xs); color: var(--ink-3); }
.x-steps { display: grid; gap: 22px; }
.x-steps li { display: flex; gap: 14px; align-items: flex-start; }
.x-steps h3 { font-size: var(--t-lg); }
.x-steps p { margin-top: 4px; font-size: var(--t-sm); line-height: 1.45; color: var(--ink-2); }
.x-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.x-tools article { padding: 22px; border-radius: var(--r-card); background: rgb(255 255 255 / 0.76); box-shadow: inset 0 0 0 0.5px var(--card-edge), var(--lift-1); }
.x-tools .icon { font-size: 24px; color: var(--voice-deep); }
.x-tools h3 { margin-top: 12px; font-size: var(--t-lg); }
.x-tools p { margin-top: 6px; font-size: var(--t-sm); line-height: 1.45; color: var(--ink-2); }

/* Themes: the room changes with the theme */
.x-themes { --room: #fde3e3; --room-2: #dfe8ff; margin-inline: clamp(8px, 1.2vw, 16px); padding-block: clamp(56px, 7vw, 104px); border-radius: var(--r-room); background: linear-gradient(135deg, var(--room), var(--room-2)); transition: --room 500ms, --room-2 500ms; }
@property --room { syntax: "<color>"; inherits: true; initial-value: #fde3e3; }
@property --room-2 { syntax: "<color>"; inherits: true; initial-value: #dfe8ff; }
[data-theme="hello-kitty"] .x-themes { --room: #ffe6f0; --room-2: #fff4f8; }
[data-theme="landscape"] .x-themes { --room: #dcefff; --room-2: #e3f4dd; }
[data-theme="cyber"] .x-themes { --room: #dcd9fb; --room-2: #d6f2f7; }
.x-themes-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.x-themes h2 { font-size: var(--t-2xl); }
.x-themes-copy > p { margin-top: 14px; max-width: 42ch; font-size: var(--t-lg); line-height: 1.4; color: var(--ink-2); }
.x-theme-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.x-theme-list button { display: flex; align-items: center; gap: 11px; min-height: 60px; padding: 8px 12px; border-radius: var(--r-control); background: rgb(255 255 255 / 0.66); text-align: start; font-family: var(--font-display); font-size: var(--t-md); font-weight: 700; transition: background 180ms, transform 320ms var(--spring), box-shadow 180ms; touch-action: manipulation; }
.x-theme-list button:active { transform: scale(0.97); }
.x-theme-list small { display: block; font-family: var(--font-text); font-size: var(--t-xs); font-weight: 450; color: var(--ink-3); }
.x-theme-list button[aria-pressed="true"] { background: var(--card); box-shadow: inset 0 0 0 2px var(--ink), var(--lift-1); }
.swatch { flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgb(var(--shadow-ink) / 0.2); }
.swatch-spiderverse { background: conic-gradient(#e0232e 0 33%, #1a1a2e 0 66%, #2a6fdb 0); }
.swatch-kitty { background: linear-gradient(135deg, #fff 45%, #ff7fb1 0); }
.swatch-landscape { background: linear-gradient(#8fc8ec 45%, #74b16b 0); }
.swatch-cyber { background: linear-gradient(135deg, #0f1636, #5a2be0 60%, #1fd4e6); }
.x-theme-stage p { padding: 10px 16px; font-size: var(--t-sm); color: #b23a3a; }

/* Free */
.x-free-section { padding-block: clamp(56px, 8vw, 112px) clamp(24px, 3vw, 40px); }
.x-free-section .x-head h2 { font-size: var(--t-2xl); }
.x-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.x-choice article { padding: clamp(22px, 3vw, 32px); border-radius: 26px; background: var(--voice-soft); }
.x-choice-local { background: var(--live-soft) !important; }
.x-choice h3 { font-size: var(--t-xl); }
.x-choice p { margin-top: 8px; font-size: var(--t-md); line-height: 1.45; color: var(--ink-2); }

/* Bridge to the app */
.x-bridge { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); padding-block: clamp(32px, 5vw, 64px); }
.x-bridge > img { flex: none; border-radius: 24%; box-shadow: var(--lift-3); }
.x-bridge h2 { font-size: var(--t-2xl); }
.x-bridge p { margin-top: 10px; max-width: 52ch; font-size: var(--t-lg); line-height: 1.4; color: var(--ink-2); }
.x-bridge .actions { margin-top: 18px; }
.x-soon { font-size: var(--t-sm); font-weight: 550; color: var(--ink-3); }

/* FAQ: native disclosures that open on a spring where the browser can */
.x-faq { padding-block: clamp(32px, 5vw, 64px); }
.x-faq h2 { font-size: var(--t-2xl); }
.x-faq-list { display: grid; gap: 8px; margin-top: 22px; }
.x-faq details { border-radius: var(--r-card); background: rgb(255 255 255 / 0.8); box-shadow: inset 0 0 0 0.5px var(--card-edge), var(--lift-1); overflow: hidden; interpolate-size: allow-keywords; }
.x-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-family: var(--font-display); font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.012em; cursor: pointer; list-style: none; }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary .icon { flex: none; font-size: 15px; color: var(--icon); transition: rotate 420ms var(--spring); }
.x-faq details[open] summary .icon { rotate: 180deg; }
.x-faq details::details-content { height: 0; overflow: clip; transition: height 340ms var(--out), content-visibility 340ms allow-discrete; }
.x-faq details[open]::details-content { height: auto; }
.x-faq details p { padding: 0 20px 20px; max-width: 70ch; color: var(--ink-2); line-height: 1.5; }

/* Install */
.x-install { display: grid; justify-items: center; gap: 12px; padding-block: clamp(56px, 8vw, 104px) clamp(16px, 2vw, 24px); text-align: center; }
.x-install h2 { font-size: var(--t-3xl); }
.x-install p { font-size: var(--t-lg); color: var(--ink-2); }
.x-pending { padding: 10px 18px; border-radius: 999px; background: var(--card); box-shadow: var(--lift-1); font-family: var(--font-display); font-size: var(--t-md); font-weight: 650; }

@media (max-width: 860px) {
  .x-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .x-flow-grid, .x-themes-in, .x-choice { grid-template-columns: minmax(0, 1fr); }
  .x-tools { grid-template-columns: minmax(0, 1fr); }
  .x-bridge { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) { .x-theme-list { grid-template-columns: minmax(0, 1fr); } }
