/* Colours from the DeskMate screen: night sky, amber clock, soft glass cards */
:root {
  --bg: #12161d;
  --bg-2: #1a2029;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1f5;
  --muted: #a3acb9;
  --amber: #ffb53b;
  --amber-ink: #241a06;
  --violet: #9a8cff;
  --green: #4ade80;
  --radius: 22px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(154, 140, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(255, 181, 59, 0.06), transparent 60%);
  color: var(--text);
  font: 400 17px/1.6 Montserrat, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; }
h3 { font-size: 19px; font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.tib { font-family: "Noto Serif Tibetan", serif; letter-spacing: 0; text-transform: none; }
/* The Tibetan site (bo/): Tibetan type throughout, a size up with room for the stacked letters,
   and no capitals or letter spacing. Montserrat first, which has no Tibetan: the Latin bits
   (DeskMate, iPhone, the email address) stay in the site's type, the Tibetan falls to Noto */
html[lang="bo"] body { font: 400 20px/1.85 Montserrat, "Noto Serif Tibetan", serif; }
html[lang="bo"] h1, html[lang="bo"] h2, html[lang="bo"] h3 { line-height: 1.5; letter-spacing: 0; }
html[lang="bo"] .eyebrow { font-size: 18px; font-weight: 500; letter-spacing: 0; text-transform: none; }
html[lang="bo"] .gen { font-size: 15px; letter-spacing: 0; padding: 2px 16px; }
html[lang="bo"] .lede { font-size: 25px; max-width: 26ch; }
html[lang="bo"] .btn, html[lang="bo"] .nav nav a { font-size: 17px; }
html[lang="bo"] .callout { font-family: Montserrat, "Noto Serif Tibetan", serif; font-size: 16px; }
html[lang="bo"] .try-hint, html[lang="bo"] .try-actions .btn { font-weight: 500; }
html[lang="bo"] .try-lede { font-size: 23px; }
html[lang="bo"] .try-hint { font-size: 19px; }
html[lang="bo"] [lang="en"] { font-family: Montserrat, system-ui, sans-serif; }
/* The other language, in the nav */
.nav nav a.lang-switch { color: var(--text); padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; }
.nav nav a.lang-switch:hover { border-color: var(--muted); text-decoration: none; }
.nav nav a.lang-switch[lang="bo"] { font-family: "Noto Serif Tibetan", serif; font-size: 16px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 22, 29, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav nav { display: flex; align-items: center; gap: 24px; }
.nav nav a { color: var(--muted); font-size: 15px; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.brand { color: var(--text); font-weight: 500; letter-spacing: .18em; display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.logo { height: 40px; width: auto; }
/* The English site's logo in the nav: the amber dot and iKORWA, as DeskMate shows it in English */
.nav .brand { font-size: 24px; font-weight: 600; gap: 12px; }
.nav .brand .dot { width: 11px; height: 11px; }
/* The raised (c) after iKORWA */
.mark { font-size: .32em; font-weight: 400; vertical-align: super; line-height: 0; margin-left: .1em; }
.brand .mark { font-size: 11px; align-self: flex-start; margin: 6px 0 0 -8px; }
/* "First Generation" under a product's name */
.gen {
  display: inline-block; margin: -4px 0 18px; padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(255, 181, 59, .4); background: rgba(255, 181, 59, .08);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--amber); color: var(--amber-ink);
  font: 600 16px Montserrat, sans-serif;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 181, 59, .25); }
.nav nav a.btn-small { color: var(--amber-ink); padding: 8px 18px; font-size: 14px; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); }

/* Hero */
.hero { padding: 24px 0 88px; }
.hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { justify-content: center; }
.eyebrow { color: var(--amber); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.eyebrow .tib { font-size: 18px; color: var(--violet); }
h1 { font-size: clamp(48px, 7vw, 80px); font-weight: 600; letter-spacing: -.01em; }
.lede { font-size: 21px; color: var(--muted); max-width: 30ch; margin: 0 0 28px; }
/* App icons, as on the device's Apps screen: a tinted circle, the Tibetan name, the English under it */
.apps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.apps li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 14px 6px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
}
.app-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px;
  color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent);
}
.app-icon svg { width: 22px; height: 22px; fill: currentColor; }
.apps .tib { font-size: 16px; line-height: 1.5; color: var(--text); }
.apps small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }


/* The 3D view: the canvas fills the stage, the flat picture steps aside */
.stage { position: relative; width: 100%; }
.stage canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage.is-3d { height: min(62vh, 600px, 88vw); min-height: 280px; }
.stage .device { max-width: 760px; margin: 24px auto 40px; }
.stage.is-3d canvas { display: block; }
.stage.is-3d .device { display: none; }

/* A screen in its frame: the 7-inch panel's black glass, wider at the sides than top and bottom
   (padding in % is of the width, so the bezel scales with the screen) */
.device {
  position: relative;
  width: 100%;
  padding: 5.6% 9.6%;
  background: #050505;
  border-radius: clamp(14px, 3.4%, 30px);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(255, 255, 255, .07),
    inset 0 1px 1px rgba(255, 255, 255, .12),
    inset 0 -1px 1px rgba(0, 0, 0, .8);
}
.device img { width: 100%; aspect-ratio: 800 / 480; border-radius: 2px; box-shadow: 0 0 0 1px #000; }
/* Light on the cover glass */
.device::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 32%, transparent 33%);
}

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 0; }
.card .tib-label { color: var(--violet); font-size: 20px; margin-bottom: 8px; }

.split-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.reverse .split-grid > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 28px; margin: 0 0 12px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.also { color: var(--muted); margin-top: 28px; text-align: center; }

.spec-list { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.spec-list li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; color: var(--muted); }
.spec-list strong { color: var(--text); font-weight: 600; }
.note { color: var(--muted); font-size: 14px; }

/* Order */
.order { background: linear-gradient(180deg, transparent, rgba(255, 181, 59, .05)); }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.order-grid > div > p { color: var(--muted); }
.contact a { font-weight: 600; }
.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form .opt { color: var(--muted); font-weight: 400; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form select, .form textarea {
  font: 400 16px Montserrat, sans-serif; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
/* Pre-orders: why, in a notice over the price (order section) */
.preorder {
  margin: 4px 0 18px; padding: 14px 16px; border-radius: 14px; font-size: 15px; color: var(--text); line-height: 1.55;
  background: rgba(255, 181, 59, .08); border: 1px solid rgba(255, 181, 59, .35);
}
.preorder-tag {
  display: inline-block; margin-right: 10px; padding: 2px 10px; border-radius: 999px; vertical-align: 1px;
  background: var(--amber); color: var(--amber-ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
html[lang="bo"] .preorder { font-size: 17px; }
html[lang="bo"] .preorder-tag { font-size: 14px; letter-spacing: 0; text-transform: none; }
/* The payment form, in the order section once "Pre-order with card" is tapped (js/order.js):
   Stripe's embedded checkout on a white card, so it reads as it does on Stripe */
.order-grid[hidden], .checkout-pane[hidden] { display: none; }
/* Wide enough (about 1100px for Stripe's frame) for its two-column layout: the order details
   on the left, payment on the right; narrower screens get its one-column layout */
.checkout-pane { max-width: 1180px; }
.checkout-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.checkout-back { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--text); font: 600 15px Montserrat, "Noto Serif Tibetan", sans-serif; }
.checkout-back:hover { color: var(--amber); }
.checkout-secure { font-size: 13px; color: var(--muted); }
#checkout-mount { background: #fff; border-radius: var(--radius); padding: 28px 0; overflow: hidden; min-height: 480px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
/* The price, and what comes with it (order section) */
.price { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 22px; }
.price-amount { font-size: clamp(40px, 5vw, 56px); font-weight: 600; color: var(--text); line-height: 1.1; letter-spacing: -.01em; }
.price-note { font-size: 15px; color: var(--muted); }
/* The price said quietly: $270, then free shipping and sales tax, a line each */
.price.price-small { display: block; margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.price-small .price-amount { font-size: inherit; font-weight: 700; color: var(--text); letter-spacing: 0; }
html[lang="bo"] .price.price-small { font-size: 17px; }
.policy { list-style: none; padding: 0; margin: 24px 0 10px; display: grid; gap: 12px; }
.policy li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 15px; }
.policy svg { width: 20px; height: 20px; fill: #5bd97a; margin-top: 2px; }
.policy strong { color: var(--text); font-weight: 600; }
.policy-link { margin: -2px 0 22px; font-size: 13px; }
.policy-link a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.policy-link a:hover { color: var(--text); }
html[lang="bo"] .policy li, html[lang="bo"] .price-note { font-size: 17px; }
.form .btn { justify-self: start; display: inline-flex; align-items: center; gap: 10px; }
.form .btn:disabled { opacity: .6; cursor: progress; }
.btn-icon { width: 20px; height: 20px; fill: currentColor; }
.form .secure { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.form-msg { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-msg a { font-weight: 600; }
/* The terms (terms.html): a readable column, the sections listed at the top */
.terms { padding: 56px 0 80px; }
.terms-wrap { max-width: 780px; }
.terms h1 { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 8px; }
.terms-updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.terms-note { color: var(--muted); }
.terms-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.terms-toc a { font-size: 14px; color: var(--text); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }
.terms-toc a:hover { border-color: var(--muted); text-decoration: none; }
.terms-lede { font-size: 18px; color: var(--text); }
.terms section { padding-top: 26px; scroll-margin-top: 80px; }
.terms h2 { font-size: 24px; margin-bottom: 10px; }
.terms p, .terms li { color: var(--muted); }
.terms strong { color: var(--text); font-weight: 600; }
.terms ul { padding-left: 20px; display: grid; gap: 10px; }
.terms-back { margin-top: 36px; }
html[lang="bo"] .terms-toc a { font-size: 16px; }
/* The terms in a pop-up (js/terms-popup.js): small print in a scrolling window over the page */
.terms-dialog {
  width: min(680px, calc(100% - 32px)); max-height: min(78vh, 760px); padding: 0; border: 1px solid var(--line);
  border-radius: 18px; background: var(--bg-2); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.terms-dialog::backdrop { background: rgba(5, 7, 10, .62); backdrop-filter: blur(2px); }
.terms-dialog-body { max-height: min(78vh, 760px); overflow-y: auto; padding: 30px 32px 28px; font-size: 13px; line-height: 1.6; }
.terms-dialog-body .eyebrow { font-size: 11px; margin-bottom: 6px; }
.terms-dialog-body h1 { font-size: 20px; margin: 0 0 4px; padding-right: 30px; }
.terms-dialog-body h2 { font-size: 14px; margin: 18px 0 6px; }
.terms-dialog-body p, .terms-dialog-body li { color: var(--muted); margin: 0 0 8px; }
.terms-dialog-body strong { color: var(--text); font-weight: 600; }
.terms-dialog-body ul { padding-left: 18px; margin: 0; }
.terms-dialog-body .terms-updated { font-size: 12px; margin-bottom: 14px; }
.terms-dialog-body .terms-lede { font-size: 13px; color: var(--text); }
.terms-close {
  position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: var(--text); font-size: 22px; line-height: 1;
}
.terms-close:hover { background: rgba(255, 255, 255, .16); }
html.terms-open { overflow: hidden; }
html[lang="bo"] .terms-dialog-body { font-size: 15px; line-height: 1.8; }
html[lang="bo"] .terms-dialog-body h2 { font-size: 16px; }

/* After paying (thanks.html): a word of thanks and the way back */
.thanks { min-height: calc(100svh - 64px - 90px); display: grid; place-items: center; text-align: center; padding: 64px 16px; }
.thanks-mark { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(91, 217, 122, .14); color: #5bd97a; }
.thanks-mark svg { width: 38px; height: 38px; fill: currentColor; }
.thanks h1 { font-size: clamp(36px, 5vw, 56px); }
.thanks p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer a { white-space: nowrap; } /* the email and phone number never split across lines */

/* Top of the home page: the two products side by side, turning */
/* A product filling the screen under the nav, its name along the bottom */
.fullshow {
  position: relative; height: calc(100svh - 64px); min-height: 460px; overflow: hidden; color: #1b1f26;
  /* A silver studio backdrop: light behind the product, so its black reads clearly */
  background: radial-gradient(ellipse 70% 65% at 50% 45%, #f1f3f6 0%, #d8dce2 55%, #b4bac3 100%);
  --green: #17a34a;
}
.fullshow .stage, .fullshow .stage.is-3d { height: 100%; min-height: 0; display: grid; place-items: center; }
.fullshow .stage .device { width: min(760px, 86%); margin: 0; }
/* Callouts on the 3D DeskMate's screen (js/products-3d.js): a flashing green dot on each part,
   a dotted line out to a few words beside it */
.callouts { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s; }
.callouts.on { opacity: 1; }
.callouts svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.callouts line {
  stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.1 7;
  animation: callout-march 1.2s linear infinite;
}
.callout-dot { fill: var(--green); animation: callout-flash 1.2s ease-in-out infinite; }
.callout-ring {
  fill: none; stroke: var(--green); stroke-width: 2; transform-box: fill-box; transform-origin: center;
  animation: callout-pulse 1.8s ease-out infinite;
}
.callout {
  position: absolute; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--text);
  padding: 6px 13px; border-radius: 999px; border: 1px dashed rgba(74, 222, 128, .65);
  background: rgba(22, 26, 33, .92); box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.callout-left { transform: translate(-100%, -50%); }
.callout-right { transform: translate(0, -50%); }
.callout-top { transform: translate(-50%, -100%); }
@keyframes callout-march { to { stroke-dashoffset: -7.1; } }
@keyframes callout-flash { 50% { opacity: .25; } }
@keyframes callout-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
/* No room beside it (phones, tablets upright): the words in rows above and below the device,
   two to a row, wrapping */
.callouts.stacked .callout {
  transform: none; white-space: normal; max-width: 46%; text-align: center; line-height: 1.35;
  font-size: 13px; padding: 5px 11px; border-radius: 14px;
}
.callouts.stacked .callout-top { max-width: 40%; }
html[lang="bo"] .callouts.stacked .callout { font-size: 14px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) {
  .callouts line, .callout-dot, .callout-ring { animation: none; }
}
/* The 3D button (js/products-3d.js), top right of the 3D DeskMate: drag to turn, tap to turn it round again */
.turn-btn {
  position: absolute; right: clamp(16px, 3vw, 32px); top: clamp(16px, 3vw, 28px); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; cursor: pointer;
  font: 500 14px/1 Montserrat, "Noto Serif Tibetan", sans-serif; color: #eef1f5;
  background: rgba(18, 22, 29, .85); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.turn-btn:hover { background: #12161d; }
.turn-btn svg { width: 22px; height: 22px; fill: var(--amber); animation: turn-hint 3s ease-in-out infinite; }
html[lang="bo"] .turn-btn { font-size: 16px; }
@keyframes turn-hint { 0%, 60%, 100% { transform: rotateY(0); } 80% { transform: rotateY(180deg); } }
@media (prefers-reduced-motion: reduce) { .turn-btn svg { animation: none; } }
.fullshow-title {
  position: absolute; left: 16px; right: 16px; bottom: clamp(20px, 5vh, 48px); margin: 0;
  text-align: center; font-size: clamp(20px, 3.2vw, 38px); font-weight: 600; letter-spacing: .22em;
  pointer-events: none;
}

.product-name { font-size: clamp(44px, 6vw, 72px); font-weight: 600; letter-spacing: -.01em; }
.apps-7 { grid-template-columns: repeat(7, 1fr); }
.nav nav a[aria-current="page"] { color: var(--text); }

/* Try DeskMate (try.html): the device on the silver backdrop, its 800 x 480 screen scaled to fit
   (js/simulator.js); inside .sim, sizes are the screen's own pixels, colours the device's */
.try {
  padding: 48px 0 72px; color: #1b1f26;
  background: radial-gradient(ellipse 70% 60% at 50% 48%, #f1f3f6 0%, #d8dce2 55%, #b4bac3 100%);
}
.try-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.try-head .eyebrow { justify-content: center; color: #b7791f; }
.try-title { font-size: clamp(36px, 5vw, 56px); margin-bottom: 10px; }
.try-lede { font-size: 19px; color: #4a5361; margin: 0 0 32px; }
.try-device {
  width: min(1000px, calc(100% - 32px)); margin: 0 auto; padding: 5.2% 7.6%; border-radius: clamp(16px, 3vw, 34px);
  background: linear-gradient(160deg, #1a1b1e, #050505 40%); box-shadow: 0 40px 80px rgba(0, 0, 0, .35), inset 0 1px 1px rgba(255, 255, 255, .12);
}
.try-fit { position: relative; width: 100%; aspect-ratio: 800 / 480; overflow: hidden; border-radius: 4px; background: #000; }
.try-help { text-align: center; margin-top: 28px; }
.try-hint { font-weight: 500; color: #2c333e; min-height: 1.6em; margin: 0 0 18px; }
.try-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 18px; }
.try .btn-ghost { color: #1b1f26; box-shadow: inset 0 0 0 1px rgba(27, 31, 38, .3); background: rgba(255, 255, 255, .35); cursor: pointer; font: inherit; font-weight: 600; }
.try .note { color: #4a5361; max-width: 62ch; margin: 0 auto; }

.try-device { position: relative; }
/* The power light, on the bezel below the screen: green, flashing while DeskMate waits to be
   switched on, steady and soft once it is */
.try-led {
  position: absolute; left: 50%; bottom: 2.2%; width: 12px; height: 12px; margin-left: -6px; border: 0; padding: 0;
  border-radius: 50%; background: #1e3a26; cursor: pointer;
}
.try-led.standby { background: #39e46b; box-shadow: 0 0 10px 3px rgba(57, 228, 107, .8); animation: try-led 1.2s ease-in-out infinite; }
.try-led.on { background: #2fbf5a; box-shadow: 0 0 6px 1px rgba(47, 191, 90, .45); }
@keyframes try-led { 50% { opacity: .2; box-shadow: none; } }

.sim {
  --text: #f2f4f7; --soft: #aeb6c2; --dim: #7d8794; --amber: #ffb547; --slate: linear-gradient(#3a4352, #262c36);
  position: absolute; left: 0; top: 0; width: 800px; height: 480px; transform: scale(var(--s, 1)); transform-origin: 0 0;
  overflow: hidden; background: #000 center / cover; color: var(--text); font: 500 16px Montserrat, "Noto Serif Tibetan", sans-serif;
  user-select: none; -webkit-user-select: none; touch-action: none; line-height: 1.25;
}
.sim button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
/* Montserrat first, which has no Tibetan: Latin bits (English, °C, iPhone) as on the device, the
   Tibetan in Noto Serif Tibetan; and Tibetan set a little lower in buttons, where its tall line
   box leaves the letters high */
.sim .t { font-family: Montserrat, "Noto Serif Tibetan", serif; }
.sim .sim-pill .t, .sim .sim-done .t, .sim-ring-snooze .t, .sim-ring-stop .t, .sim-dt-save .t, .sim-ed-row button .t,
.sim-toggle .t, .sim-seg .t { position: relative; top: 3px; }
.sim .amber { color: var(--amber); }
.sim .soft { color: var(--soft); }
.sim .dim { color: var(--dim); }
.sim hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 10px 0; width: 100%; }
.sim .si { fill: currentColor; flex: none; }
.sim-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--soft); font-size: 24px; }
.sim-dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 40; }

/* Off: a black screen and the power button; on: the splash, then the screens */
.sim-power {
  position: absolute; inset: 0; z-index: 60; background: #000 !important; display: none !important;
  flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.sim-power.on { display: flex !important; }
.sim-power-ring {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; color: #39e46b;
  box-shadow: 0 0 0 3px rgba(57, 228, 107, .8), 0 0 30px rgba(57, 228, 107, .45); animation: sim-power 1.2s ease-in-out infinite;
}
.sim-power-label { color: #c9d1db; font-size: 22px; }
.sim-power-label .t { font-size: 26px; }
.sim-power.nudge .sim-power-ring { animation: sim-nudge .5s; }
@keyframes sim-power { 50% { box-shadow: 0 0 0 3px rgba(57, 228, 107, .25), 0 0 6px rgba(57, 228, 107, .1); color: #1f7a3c; } }
@keyframes sim-nudge { 30% { transform: scale(1.12); } }
.sim-splash { position: absolute; inset: 0; width: 800px; height: 480px; z-index: 50; display: none; }
.sim-splash.on { display: block; }

/* One screen at a time: the next slides in */
.sim-screen {
  position: absolute; inset: 0; opacity: 0; transform: translateX(36px); pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}
.sim-screen.on { opacity: 1; transform: none; pointer-events: auto; }
.sim-screen.plain { background: #07090c; }
.sim-live { width: 800px; height: 480px; display: block; }
.sim-hit { position: absolute; border-radius: 28px; }
.sim-hit:active { background: rgba(255, 255, 255, .06); }

/* ui::panel and ui::pill, the device's slate panel and its round-ended buttons */
.sim .sim-panel { position: absolute; border-radius: 28px; background: var(--slate); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 8px 28px rgba(0, 0, 0, .4); }
.sim .sim-pill {
  height: 40px; min-width: 64px; padding: 0 18px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--soft); background: var(--slate); border: 1px solid rgba(255, 255, 255, .1); font-size: 16px; white-space: nowrap;
}
.sim .sim-pill .t { font-size: 17px; }
.sim .sim-pill.lit { color: var(--amber); border-color: rgba(255, 181, 71, .45); }
.sim .sim-pill.inline { height: 36px; padding: 0 16px; }
.sim-pill:active, .sim-tile:active, .sim-key:active, .sim-crow:active, .sim-net:active { filter: brightness(1.25); }
.sim-back, .sim-arrow { position: absolute; top: 10px; }
.sim-back { left: 22px; }
.sim-title { position: absolute; left: 110px; top: 13px; line-height: 40px; color: var(--soft); font-size: 22px; }
.sim-bar { position: absolute; right: 22px; top: 10px; display: flex; gap: 10px; }

/* Apps: 3 x 3 */
.sim-apps { position: absolute; left: 22px; top: 72px; display: grid; grid-template-columns: repeat(3, 244px); grid-auto-rows: 116px; gap: 14px 12px; }
.sim .sim-tile { position: relative; display: flex; align-items: center; gap: 14px; padding: 0 16px; text-align: left; }
.sim-chip { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 20%, transparent); flex: none; }
.sim-tile-tib { display: block; font-size: 28px; line-height: 1.45; white-space: nowrap; }
.sim-tile-en { display: block; font-size: 12px; letter-spacing: 2px; color: var(--dim); }

/* Calendar */
.sim-month { left: 22px; top: 62px; width: 460px; height: 404px; padding: 14px 12px; }
.sim-month-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 8px; font-size: 19px; letter-spacing: 2px; }
.sim-month-head .t { letter-spacing: 0; font-size: 18px; }
.sim-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 47px; text-align: center; }
.sim-wd { display: flex; flex-direction: column; color: var(--dim); font-size: 10px; line-height: 1.2; justify-content: center; }
.sim-wd .t { font-size: 16px; }
.sim-date { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; font-size: 18px; line-height: 1.05; }
.sim-date .t { font-size: 15px; color: var(--soft); }
.sim-date .t.amber { color: var(--amber); }
.sim-date.out { opacity: .35; }
.sim-date.today:not(.sel) { box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .55); }
.sim-date.sel { background: var(--amber); color: #1b1f26; }
.sim-date.sel .t { color: #1b1f26; }
.sim-dot { position: absolute; right: 9px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.sim-date.sel .sim-dot { background: #1b1f26; }
.sim-day { left: 500px; top: 62px; width: 278px; height: 404px; padding: 16px 18px; display: flex; flex-direction: column; overflow: hidden; }
.sim-day-top { display: flex; justify-content: space-between; align-items: center; }
.sim-tag { color: var(--amber); background: rgba(255, 181, 71, .16); padding: 3px 12px 0; border-radius: 999px; font-size: 15px; line-height: 1.7; }
.sim .sim-note-btn { height: 34px; padding: 0 14px; }
.sim-day-wd { font-size: 24px; margin-top: 6px; line-height: 1.6; }
.sim-day-num { display: flex; align-items: center; justify-content: space-between; margin: 0 0 2px; }
.sim-day-num .t { font-size: 60px; line-height: 1.15; }
.sim-day-num canvas { width: 60px; height: 60px; }
.sim-day .dim { font-size: 14px; }
.sim-day-year { font-size: 19px; }
.sim-day-big { font-size: 28px; line-height: 1.35; }
.sim-day-big small { font-size: 14px; }
.sim-special { color: var(--amber); border: 1px solid rgba(255, 181, 71, .45); border-radius: 10px; padding: 0 8px; vertical-align: middle; }
.sim-day-en { margin-top: auto; line-height: 1.5; }

/* The note editor (as on the device: the page fills the screen under its tools) */
.sim-note-ed { background: linear-gradient(#2a303a, #1b1f26 30%, #12161d) !important; }
.sim .sim-done {
  position: absolute; left: 20px; top: 14px; height: 42px; padding: 0 18px 0 14px; border-radius: 21px; background: var(--amber);
  display: flex; align-items: center; gap: 8px; color: #1b1f26; box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.sim-done .t { font-size: 18px; }
.sim-ink { position: absolute; top: 20px; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.sim-ink:nth-of-type(1) { left: 146px; } .sim-ink:nth-of-type(2) { left: 184px; } .sim-ink:nth-of-type(3) { left: 220px; }
.sim-ink.on { box-shadow: 0 0 0 3px #1b1f26, 0 0 0 5px #fff; }
.sim .sim-round-btn { position: absolute; top: 13px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--slate); border: 1px solid rgba(255, 255, 255, .1); color: var(--soft); }
.sim-round-btn[data-a=undo] { left: 267px; } .sim-round-btn[data-a=clear] { left: 319px; }
.sim-round-btn[data-a=up] { left: 371px; } .sim-round-btn[data-a=down] { left: 423px; }
.sim-round-btn.dim { opacity: .45; pointer-events: none; }
.sim-tab {
  position: absolute; left: 480px; top: 18px; width: 300px; height: 80px; border-radius: 18px; background: #f7eda6; padding: 16px 18px 0;
  color: #8a6d1a; font-size: 14px; font-weight: 600; letter-spacing: 1.5px; white-space: nowrap;
}
.sim-tab .t { letter-spacing: 0; font-size: 16px; margin-left: 6px; }
.sim-paper {
  position: absolute; left: 20px; top: 70px; width: 760px; height: 396px; border-radius: 18px; overflow: hidden;
  background: repeating-linear-gradient(#fdf4b0 0 41px, #e3d68b 41px 42px) 0 33px / 100% 100% #fdf4b0; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.sim-paper::before { content: ""; position: absolute; left: 64px; top: 0; bottom: 0; width: 2px; background: #eab3d6; }
.sim-paper canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.sim-paper.small { left: 12px; top: 12px; width: 492px; height: 378px; background-size: 100% 100%; cursor: pointer; }
.sim-paper.small canvas { top: 48px; height: 330px; cursor: pointer; }
.sim-tab.small { position: absolute; left: auto; right: 10px; top: 8px; width: auto; height: 32px; padding: 3px 14px; border-radius: 12px; z-index: 1; font-size: 12px; }

/* Notes */
.sim-notes-page { left: 22px; top: 62px; width: 518px; height: 404px; }
.sim-notes-list { left: 558px; top: 62px; width: 220px; height: 404px; padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.sim-notes-row { text-align: left; padding: 8px 12px !important; border-radius: 16px; border: 1px solid transparent !important; font-size: 13px; letter-spacing: 1px; color: var(--text); }
.sim-notes-row .t { display: block; color: var(--amber); letter-spacing: 0; font-size: 14px; }
.sim-notes-row.sel { border-color: var(--amber) !important; background: rgba(255, 181, 71, .1) !important; }
.sim-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px; text-align: center; color: #f5d547; }
.sim-empty p { color: var(--soft); font-size: 19px; line-height: 1.7; margin: 0; }

/* Alarms */
.sim-alarms { position: absolute; left: 22px; top: 62px; display: grid; grid-template-columns: repeat(2, 368px); grid-auto-rows: 112px; gap: 14px 20px; }
.sim .sim-alarm { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.sim-alarm.off .sim-alarm-time { opacity: .45; }
.sim-alarm-time { text-align: left; }
.sim-alarm-clock { font: 34px/1.2 DeskMateClockTib, "Noto Serif Tibetan", serif; }
.sim-alarm-period { font-size: 20px; }
.sim-alarm-days { display: block; font-size: 17px; }
.sim-switch { width: 64px; height: 34px; border-radius: 17px; background: #1c2129 !important; position: relative; flex: none; }
.sim-switch span { position: absolute; left: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .2s; }
.sim-switch.on span { left: 34px; }
.sim-modal { position: absolute; inset: 0; background: rgba(5, 7, 10, .62); display: grid; place-items: center; z-index: 5; }
.sim .sim-editor { position: relative; width: 470px; padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.sim-ed-title { font-size: 24px; text-align: center; }
.sim-ed-help { font-size: 15px; text-align: center; margin: -6px 0 0; line-height: 1.6; }
.sim-ed-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
.sim-ed-row.small { gap: 10px; font-size: 15px; }
.sim-ed-row button, .sim-ed-days button { min-width: 44px; height: 44px; border-radius: 22px; background: rgba(255, 255, 255, .08) !important; font-size: 24px; padding: 0 12px !important; }
.sim-ed-row.small button { font-size: 18px; height: 36px; }
.sim-ed-clock { font: 54px/1.2 DeskMateClockTib, "Noto Serif Tibetan", serif; min-width: 200px; text-align: center; }
.sim-ed-days { display: flex; justify-content: space-between; }
.sim-ed-days button { font-size: 17px; color: var(--dim); }
.sim-ed-days button.on { background: rgba(255, 181, 71, .2) !important; color: var(--amber); }
.sim-ed-row .sim-del { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; color: #ff6b5c; }
.sim-ed-row .sim-ok { display: inline-flex; align-items: center; gap: 6px; background: var(--amber) !important; color: #1b1f26; font-size: 17px; padding: 0 26px !important; }
.sim-clim { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.sim-clim .t { font-size: 19px; }
.sim-clim-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.sim-clim-icon.temp { color: #ff8a5c; background: rgba(255, 138, 92, .18); }
.sim-clim-icon.hum { color: #5ab8ff; background: rgba(90, 184, 255, .18); }

/* Ringing (the device's: the bell in its glowing sun, the time, snooze and stop) */
.sim-screen[data-name="ringing"] { background: linear-gradient(#1a1610 0 14%, #0c0d0b 14% 66%, #07090a 66%) !important; }
.sim-ring-sun {
  position: absolute; left: 80px; top: 70px; width: 300px; height: 300px; border-radius: 50%; background: #bf8a30; color: #1b1f26;
  display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(191, 138, 48, .14), 0 0 0 30px rgba(191, 138, 48, .07), 0 0 60px rgba(191, 138, 48, .3);
  animation: sim-ring 1.6s ease-in-out infinite;
}
.sim-ring-sun .si { animation: sim-shake 1s ease-in-out infinite; }
.sim-ring-text { position: absolute; left: 412px; top: 92px; }
.sim-ring-title { font-size: 28px; line-height: 1.9; }
.sim-ring-title + div { margin-top: 22px; }
.sim-ring-clock { font: 92px/1.05 DeskMateClockTib, "Noto Serif Tibetan", serif; }
.sim-ring-period { font-size: 30px; }
.sim .sim-ring-snooze, .sim .sim-ring-stop { position: absolute; top: 390px; height: 60px; border-radius: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; }
.sim .sim-ring-snooze { left: 360px; width: 220px; background: #3a4352; color: var(--text); }
.sim .sim-ring-stop { left: 598px; width: 180px; background: var(--amber); color: #1b1f26; }
.sim-ring-snooze .t, .sim-ring-stop .t { font-size: 18px; }
@keyframes sim-ring { 50% { box-shadow: 0 0 0 20px rgba(191, 138, 48, .18), 0 0 0 40px rgba(191, 138, 48, .06), 0 0 80px rgba(191, 138, 48, .4); } }
@keyframes sim-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(12deg); } 40% { transform: rotate(-10deg); } 60% { transform: rotate(6deg); } 80% { transform: rotate(-3deg); } }

/* Incoming call */
.sim-call { background: linear-gradient(#10271a, #0a130d 42%, #07090a) !important; text-align: center; }
.sim-avatar {
  width: 150px; height: 150px; margin: 64px auto 14px; border-radius: 50%; display: grid; place-items: end center; overflow: hidden;
  background: linear-gradient(#5d6676, #343b47); color: rgba(230, 233, 238, .92); box-shadow: 0 0 0 4px #1f6b39;
}
.sim-avatar .si { width: 118px; height: 118px; margin-bottom: -14px; }
.sim-call:not(.talking) .sim-avatar { animation: sim-call 1.6s ease-out infinite; }
.sim-call-name { font-size: 36px; line-height: 1.4; }
.sim-call-sub { color: var(--soft); font-size: 17px; margin-top: 2px; }
.sim-call-sub .t { font-size: 18px; }
.sim .sim-round-call { position: absolute; top: 338px; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.sim .sim-round-call.decline { left: 174px; background: #ff4a3d; }
.sim-round-call.decline .si { transform: rotate(135deg); }
.sim .sim-round-call.accept { left: 530px; background: #30c45a; }
.sim-call.talking .accept { visibility: hidden; }
.sim-call-under { position: absolute; top: 438px; left: 0; right: 0; display: flex; justify-content: center; gap: 216px; color: var(--soft); font-size: 18px; }
.sim-call-under span { width: 140px; }
@keyframes sim-call { 0% { box-shadow: 0 0 0 4px #1f6b39, 0 0 0 4px rgba(48, 196, 90, .5); } 100% { box-shadow: 0 0 0 4px #1f6b39, 0 0 0 34px rgba(48, 196, 90, 0); } }

/* Contacts: the list wide on the left, the chosen one on the right */
.sim-clist { left: 22px; top: 62px; width: 508px; height: 404px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.sim-crow { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 8px 14px !important; border-radius: 18px; text-align: left; }
.sim-crow .t { font-size: 20px; }
.sim-crow .dim { font-size: 13px; }
.sim-crow.sel { background: rgba(79, 141, 247, .18) !important; }
.sim-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: end center; overflow: hidden; background: linear-gradient(#5d6676, #343b47); color: rgba(230, 233, 238, .9); }
.sim-av .si { width: 36px; height: 36px; margin-bottom: -5px; }
.sim-av.big { width: 76px; height: 76px; }
.sim-av.big .si { width: 62px; height: 62px; margin-bottom: -8px; }
.sim-ccard { left: 548px; top: 62px; width: 230px; height: 404px; padding: 20px; display: flex; flex-direction: column; gap: 2px; }
.sim-cname { font-size: 22px; line-height: 1.5; margin-top: 6px; }
.sim-clabel { font-size: 13px; margin-top: 10px; }
.sim-ccard .soft { font-size: 14px; }
.sim-ccard .t.amber { font-size: 18px; }

/* Date & time: the device's editor, rollers in two panels */
.sim-dt-title { position: absolute; left: 28px; top: 16px; font-size: 24px; }
.sim-dt-date { left: 22px; top: 74px; width: 396px; height: 286px; }
.sim-dt-time { left: 438px; top: 74px; width: 340px; height: 286px; }
.sim-dt-label { position: absolute; left: 18px; top: 12px; color: var(--soft); font-size: 15px; }
.sim-rolls { position: absolute; left: 14px; right: 14px; top: 56px; display: flex; justify-content: center; align-items: flex-start; gap: 10px; }
.sim-roll { display: flex; flex-direction: column; align-items: center; width: 92px; }
.sim-roll.wide { width: 150px; }
.sim-roll button { font-size: 26px; color: var(--dim); height: 46px; width: 100%; }
.sim-roll-cur { width: 100%; text-align: center; font-size: 28px; line-height: 46px; color: var(--amber); background: rgba(255, 181, 71, .16); border-radius: 10px; }
.sim-roll-label { font-size: 13px; color: var(--dim); margin-top: 8px; }
.sim-colon { color: var(--amber); font-size: 28px; line-height: 46px; margin-top: 46px; }
.sim-ampm { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; background: #1c2129; border-radius: 22px; padding: 6px; }
.sim-ampm button { font-size: 18px; padding: 4px 12px !important; border-radius: 16px; color: var(--soft); white-space: nowrap; }
.sim-ampm button.on { background: rgba(255, 181, 71, .25) !important; color: var(--amber); }
.sim .sim-dt-cancel, .sim .sim-dt-save { position: absolute; top: 394px; height: 60px; border-radius: 30px; font-size: 19px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sim .sim-dt-cancel { left: 370px; width: 170px; background: #3a4352; padding-top: 6px; }
.sim .sim-dt-save { left: 558px; width: 220px; background: var(--amber); color: #1b1f26; }

/* Wi-Fi networks */
.sim-netlist { left: 22px; top: 62px; width: 756px; height: 404px; padding: 14px 18px; display: flex; flex-direction: column; }
.sim-net { display: flex; align-items: center; gap: 10px; padding: 14px 12px !important; font-size: 20px; border-radius: 14px; text-align: left; }
.sim-net-end { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--dim); }
.sim-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.sim-bars i { width: 5px; border-radius: 2px; background: #4a5363; }
.sim-bars i.lit { background: #4fd1e8; }
.sim-ok-dot { width: 10px; height: 10px; border-radius: 50%; background: #5bd97a; display: inline-block; flex: none; }
.sim-off-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); display: inline-block; }

/* Calculator: the device's keys */
.sim-calc-out { left: 22px; top: 66px; width: 330px; height: 396px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; padding: 22px; overflow: hidden; }
.sim-calc-sum { color: var(--soft); font-size: 22px; min-height: 30px; }
.sim-calc-ans { color: var(--amber); font-size: 46px; line-height: 1.3; }
.sim-calc-keys { position: absolute; left: 368px; top: 66px; width: 410px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 70px; gap: 11px 10px; }
.sim .sim-key { border-radius: 18px; background: #2a313b; border: 1px solid rgba(255, 255, 255, .08); display: grid; place-items: center; font-size: 30px; }
.sim .sim-key .t { font-size: 30px; }
.sim .sim-key.fn { background: #3a4352; }
.sim .sim-key.op { background: var(--amber); color: #1b1f26; }
.sim .sim-key.op .t { font-family: Montserrat, sans-serif; font-size: 30px; }
.sim .sim-key.zero { grid-column: span 2; }

/* Settings */
.sim-set-left { left: 22px; top: 62px; width: 370px; height: 404px; padding: 16px 18px; display: flex; flex-direction: column; }
.sim-set-right { left: 412px; top: 62px; width: 366px; height: 404px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.sim-set-left hr, .sim-set-right hr { margin: 8px 0; }
.sim-sec-head { display: flex; align-items: center; gap: 10px; color: var(--soft); margin-bottom: 6px; }
.sim-sec-head .t { font-size: 17px; }
.sim-sec-head .sim-switch { margin-left: auto; }
.sim-badge { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); }
.sim-sec-row { display: flex; align-items: center; justify-content: space-between; }
.sim-sec-row .sim-sec-head { margin: 0; }
.sim-seg { display: inline-flex; align-self: flex-start; background: #1c2129; border-radius: 26px; padding: 4px; }
.sim-seg button { padding: 4px 22px !important; border-radius: 22px; color: var(--soft); font-size: 20px; min-width: 80px; }
.sim-seg button.on { background: rgba(255, 181, 71, .3) !important; color: var(--amber); }
.sim-vol { display: flex; align-items: center; gap: 14px; }
.sim-vol input { flex: 1; accent-color: var(--amber); }
.sim .sim-vol .sim-play { height: 36px; min-width: 56px; padding: 0 14px; }
.sim-net-now { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 2px 0; }
.sim-small { font-size: 13px; line-height: 1.6; }
.sim-small .t, .sim-small.t { font-size: 14px; }
.sim-btn-row { display: flex; gap: 10px; margin-top: 6px; }
.sim-bt-status { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.sim-set-right > .sim-pill { align-self: flex-start; margin-top: 6px; }

/* Music */
.sim-now { left: 22px; top: 62px; width: 350px; height: 404px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px; text-align: center; }
.sim-disc { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#ff6fa8, #9c7cf4, #ffb547, #ff6fa8); color: #fff; margin-bottom: 10px; }
.sim-disc.spin { animation: sim-spin 6s linear infinite; }
.sim-now-title { font-size: 20px; }
.sim-now .dim { font-size: 14px; }
.sim-track-bar { width: 100%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); margin: 12px 0 6px; overflow: hidden; }
.sim-track-bar span { display: block; width: 0; height: 100%; background: #ff6fa8; }
.sim-now-btns { display: flex; align-items: center; gap: 26px; color: var(--soft); }
.sim .sim-playbig { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #ff6fa8; color: #fff; }
.sim-tracks { left: 392px; top: 62px; width: 386px; height: 404px; padding: 10px 16px; overflow: hidden; }
.sim-tracks-head { font-size: 15px; padding: 2px 6px 6px; }
.sim-track { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 6px !important; border-bottom: 1px solid rgba(255, 255, 255, .06) !important; font-size: 15px; }
.sim-track small { display: block; color: var(--dim); font-size: 12px; }
.sim-track.sel { color: #ff6fa8; }
.sim-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.sim-eq i { width: 4px; background: #ff6fa8; border-radius: 2px; animation: sim-eq .8s ease-in-out infinite alternate; }
.sim-eq i:nth-child(2) { animation-delay: .25s; }
.sim-eq i:nth-child(3) { animation-delay: .5s; }
@keyframes sim-spin { to { transform: rotate(360deg); } }
@keyframes sim-eq { from { height: 4px; } to { height: 18px; } }

/* Control panel, from the top */
.sim-cp { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.sim-cp-shade { position: absolute; inset: 0; background: rgba(5, 7, 10, .55); opacity: 0; transition: opacity .25s; }
.sim-cp-box { left: 22px; right: 22px; top: 10px; height: 410px; padding: 18px 22px; transform: translateY(-460px); transition: transform .3s ease; display: flex; flex-direction: column; gap: 12px; }
.sim-cp.on { pointer-events: auto; }
.sim-cp.on .sim-cp-shade { opacity: 1; }
.sim-cp.on .sim-cp-box { transform: none; }
.sim-cp-row { display: flex; gap: 14px; }
.sim-toggle { flex: 1; height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255, 255, 255, .07) !important; color: var(--dim); font-size: 19px; }
.sim-toggle.on { background: rgba(79, 209, 232, .2) !important; color: #4fd1e8; }
.sim-cp-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.sim-cp-slider { display: flex; align-items: center; gap: 12px; color: var(--soft); }
.sim-cp-slider input { flex: 1; accent-color: var(--amber); }
.sim-cp-head { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 17px; }
.sim .sim-cp-clear { height: 32px; }
.sim-notes-feed { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.sim-feed-item { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, .05); border-radius: 16px; padding: 8px 14px; font-size: 15px; color: var(--soft); line-height: 1.5; }
.sim-feed-item b { color: var(--text); font-weight: 500; }
.sim-app-icon { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 16px; font-weight: 600; }
.sim-app-icon.big { width: 44px; height: 44px; border-radius: 12px; font-size: 22px; }
.sim-none { padding: 20px; text-align: center; font-size: 18px; }

/* A message arriving: the banner over the top of the screen */
.sim .sim-banner {
  position: absolute; left: 120px; top: 10px; width: 560px; z-index: 20; display: flex; gap: 14px; align-items: center; text-align: left;
  padding: 12px 16px; border-radius: 18px; background: rgba(48, 54, 64, .97); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5); transform: translateY(-130px); transition: transform .35s ease;
}
.sim-banner.on { transform: none; }
.sim-banner small { display: block; font-size: 11px; letter-spacing: 2px; color: var(--dim); }
.sim-banner b { display: block; font-weight: 500; font-size: 19px; line-height: 1.4; }
.sim-banner .t:last-child { display: block; color: var(--soft); font-size: 16px; }

.sim-toast {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; z-index: 45; pointer-events: none;
  background: rgba(20, 24, 30, .94); border: 1px solid rgba(255, 255, 255, .12); padding: 8px 20px; border-radius: 22px; font-size: 16px; white-space: nowrap;
  transition: opacity .25s, transform .25s;
}
.sim-toast .t { font-size: 17px; }
.sim-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  .sim-screen, .sim-cp-box, .sim-banner { transition: none; }
  .sim-ring-sun, .sim-ring-sun .si, .sim-call .sim-avatar, .sim-disc.spin, .sim-eq i, .sim-power-ring, .try-led.standby { animation: none !important; }
}

/* Phones and small tablets */
@media (max-width: 860px) {
  .hero { padding: 8px 0 64px; }
  .split-grid, .order-grid { grid-template-columns: 1fr; gap: 36px; }
  .reverse .split-grid > :first-child { order: 0; }
  .section { padding: 64px 0; }
  .nav nav { gap: 16px; }
  .nav nav .nav-extra { display: none; }
  .try { padding-top: 32px; }
  .try-device { padding: 4% 5%; }
  /* The app row stays one line and scrolls sideways */
  .apps {
    margin-top: 40px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 104px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none;
  }
  .apps::-webkit-scrollbar { display: none; }
  .apps li { scroll-snap-align: start; }
}
/* Phones: a smaller logo, so it, Try it, the language and Get it share the top in one line */
@media (max-width: 560px) {
  .nav .brand { font-size: 18px; letter-spacing: .14em; gap: 8px; }
  .nav .brand .dot { width: 8px; height: 8px; }
  .brand .mark { font-size: 9px; margin: 4px 0 0 -6px; }
  .logo { height: 26px; }
  .nav nav { gap: 12px; }
  .nav nav a, html[lang="bo"] .nav nav a { font-size: 14px; }
  .nav nav a.lang-switch { padding: 3px 10px; }
  .nav nav a.lang-switch[lang="bo"] { font-size: 14px; }
  .nav nav a.btn-small { padding: 7px 14px; }
  html[lang="bo"] .nav nav a.btn-small { font-size: 15px; }
}
@media (max-width: 380px) {
  .nav .brand { font-size: 16px; letter-spacing: .1em; }
  .logo { height: 22px; }
  .nav nav { gap: 8px; }
  .nav nav a.lang-switch { padding: 2px 8px; }
  .nav nav a.btn-small { padding: 6px 12px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .form { padding: 20px; }
  .form .row { grid-template-columns: 1fr; }
}
