/* Premium Apps+ — pmapps.online
   Company site for all our apps. Colours from the Premium Apps+ logo; font Inter. */

:root {
  --bg: #F7F7F7;
  --surface: #FFFFFF;
  --text: #373334;
  --muted: #7A7778;
  --line: #E4E4E9;
  --grid: rgba(28, 132, 178, .16);
  --brand: #FF5B2E;
  --brand-deep: #E5461B;
  --brand-soft: #FFEDE6;
  --green: #00C26C;
  --red: #F93636;
  --ink: #0F0F12;
  --ink-2: #1C1C22;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(16, 16, 32, .04), 0 12px 32px -12px rgba(16, 16, 32, .14);
  --maxw: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0E;
    --surface: #16161B;
    --text: #F4F4F6;
    --muted: #9A9AA5;
    --line: #26262E;
    --grid: rgba(255, 255, 255, .06);
    --brand-soft: #3A1E14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-deep); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); }

@media (max-width: 760px) {
  .nav { display: none; }
  .site-header .btn { margin-inline-start: auto; }
}

/* ---------- Generic sections ---------- */
section { padding-block: 96px; scroll-margin-top: 60px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 40ch; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); margin: 14px auto 0; font-size: 18px; }

/* ---------- Hero ---------- */
.hero { padding-block: 56px 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { margin: 22px 0 32px; }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.store-badge img { height: 54px; width: auto; }
.store-badge:hover { opacity: .85; }
.micro { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 15px; font-weight: 600; }
.micro span::before { content: "✓"; color: var(--green); font-weight: 800; margin-inline-end: 6px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .store-row, .micro { justify-content: center; }
}

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
}
.icon-badge svg { width: 24px; height: 24px; }

/* ---------- Privacy band ---------- */
.band {
  background: radial-gradient(120% 140% at 0% 0%, #4A1F0E 0%, #22110C 45%, #110A09 100%);
  color: #fff; border-radius: 32px; padding: clamp(36px, 6vw, 72px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.band .eyebrow { color: #FFB27D; }
.band p { color: rgba(255,255,255,.72); font-size: 18px; margin: 16px 0 0; }
.band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.band li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 14px 16px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.band li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #00DC7A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0F1C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 18px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 500; color: var(--brand); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .card { padding: clamp(36px, 6vw, 72px); background: linear-gradient(140deg, #FF9F1C, var(--brand) 45%, #E5397F); color: #fff; border: 0; }
.cta .card p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 46ch; margin: 16px auto 30px; }
.cta .store-row { justify-content: center; }
.cta .micro { justify-content: center; color: rgba(255,255,255,.8); }
.cta .micro span::before { color: #7CF0B9; }
.cta-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 24px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.site-footer .brand { margin-bottom: 8px; }
.site-footer p { margin: 0; max-width: 42ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.copyright { width: 100%; font-size: 14px; }

/* ---------- Legal pages ---------- */
.legal { padding-block: 56px 96px; }
.legal .wrap { max-width: 800px; }
.legal .back { display: inline-flex; gap: 6px; font-weight: 700; margin-bottom: 28px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); }
.legal .updated { color: var(--muted); margin: 12px 0 36px; font-weight: 600; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -.015em; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.legal ul { padding-inline-start: 22px; }
.legal li { margin-bottom: 8px; }
.legal .note { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.legal th, .legal td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 800; }
.table-scroll { overflow-x: auto; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Small screens ---------- */
.brand, .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .wrap { padding-inline: 18px; }
  .site-header .wrap { gap: 12px; height: 60px; }
  .brand { font-size: 17px; }
  .brand img { width: 30px; height: 30px; }
  .site-header .btn { height: 38px; padding: 0 14px; font-size: 14px; }
  section { padding-block: 72px; }
}
@media (max-width: 640px) {
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { display: none; }
  .legal tr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 4px; margin-bottom: 12px; background: var(--surface); }
  .legal td { border: 0; padding: 6px 12px; }
  .legal td:nth-child(2)::before { content: "Why: "; font-weight: 800; }
  .legal td:nth-child(3)::before { content: "Legal basis: "; font-weight: 800; }
}

/* ---------- Hero with live demo ---------- */
.hero-demo { padding-block: 40px 72px; position: relative; isolation: isolate; }
/* graph-paper detail behind the hero, fading out towards the edges */
.hero-demo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 40%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 80% at 50% 40%, #000 35%, transparent 100%);
}
.hero-demo .wrap { grid-template-columns: 1fr auto; gap: 64px; }
.hero-demo h1 { font-size: clamp(38px, 5.2vw, 60px); }
.hero-demo .lead { max-width: 44ch; margin: 20px 0 26px; }
.hero-phone { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.hero-phone::before {
  content: ""; position: absolute; z-index: -1; inset: 6% -18% 18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 91, 46, .22), transparent); filter: blur(24px);
}
.demo-hint { margin: 6px 0 0; max-width: 340px; text-align: center; color: var(--muted); font-size: 14px; min-height: 2.6em; }
.demo-reset { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 4px 8px; }
.demo-reset:hover { text-decoration: underline; }

.demo-picks { display: grid; gap: 10px; margin-bottom: 28px; max-width: 460px; }
.demo-pick {
  display: flex; align-items: center; gap: 14px; text-align: start; font: inherit; color: var(--text); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 16px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.demo-pick:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.demo-pick[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.demo-pick b { display: block; font-size: 16px; }
.demo-pick small { display: block; color: var(--muted); font-size: 14px; }
.pick-ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.demo-pick[aria-pressed="true"] .pick-ic { background: var(--brand); color: #fff; }
.pick-ic svg { width: 22px; height: 22px; }
.demo-pick:focus-visible, .try-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.try-link { margin-top: 14px; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--brand); cursor: pointer; }
.try-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero-demo .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-demo .lead { margin-inline: auto; }
  .demo-picks { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 8px; }
  .demo-pick { flex-direction: column; text-align: center; gap: 8px; padding: 12px 8px; }
  .demo-pick small { display: none; }
  .demo-pick b { font-size: 13px; }
  .hero-demo .hero-copy .store-row, .hero-demo .micro { display: none; }
}
.mobile-only { display: none; }
@media (max-width: 900px) { .mobile-only { display: inline-block; margin-top: 6px; } }

/* ---------- Rating + post-demo CTA ---------- */
.app-rating { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.app-rating b { color: var(--text); }
.app-rating .stars { color: #FFB300; letter-spacing: 1px; font-size: 15px; }
.demo-cta {
  display: grid; justify-items: center; gap: 4px; text-align: center; max-width: 340px; width: 100%;
  background: var(--surface); border: 1.5px solid var(--brand); border-radius: 20px; padding: 16px 18px 18px;
  box-shadow: 0 10px 30px -12px rgba(255, 91, 46,.35); animation: ctaIn .4s cubic-bezier(.2,.9,.3,1.2);
}
.demo-cta b { font-size: 17px; }
.demo-cta span { color: var(--muted); font-size: 14px; }
.demo-cta .btn { margin-top: 10px; }
@keyframes ctaIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .demo-cta { animation: none; } }
@media (max-width: 900px) { .hero-demo .store-row .app-rating { display: none; } }
/* on phones the hero's store row is hidden, so the rating sits under the badge below the demo */
.hero-phone .rating-mobile { display: none; }
@media (max-width: 900px) { .hero-phone .rating-mobile { display: inline-flex; } }

/* ---------- Language menu (footer) ---------- */
.lang-menu { position: relative; width: fit-content; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 16px; height: 16px; color: var(--muted); }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-135deg) translate(-1px, -1px); margin-inline-start: 2px; }
.lang-menu[open] summary::after { transform: rotate(45deg) translate(-2px, -2px); }
.lang-list {
  position: absolute; bottom: calc(100% + 8px); inset-inline-start: 0; z-index: 60; width: 240px; max-height: 60vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 6px;
  display: grid;
}
.lang-list a { padding: 8px 12px; border-radius: 10px; color: var(--text); font-weight: 500; font-size: 15px; }
.lang-list a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); text-decoration: none; }
.lang-list a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.lang-menu summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* CJK and Devanagari: no negative tracking on headings */
:lang(ja) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3), :lang(hi) :is(h1, h2, h3), :lang(th) :is(h1, h2, h3), :lang(ar) :is(h1, h2, h3, .brand) { letter-spacing: 0; }
/* Arabic letters join, so never add tracking; Thai and Vietnamese need taller lines for their marks */
:lang(ar) * { letter-spacing: 0 !important; }
:lang(th) h1, :lang(vi) h1, :lang(hi) h1 { line-height: 1.3; }

.site-footer .lang-menu { flex-basis: 100%; }
.site-footer .lang-menu .lang-list { width: 240px; }

:lang(ja) .eyebrow, :lang(ko) .eyebrow, :lang(zh) .eyebrow, :lang(hi) .eyebrow, :lang(th) .eyebrow { text-transform: none; letter-spacing: .04em; }
:lang(ar) .eyebrow { text-transform: none; }

/* ---------- Company site ---------- */
.accent-grad { background: linear-gradient(90deg, #FF9F1C, var(--brand) 50%, #E5397F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-co { padding-block: 64px 56px; text-align: center; position: relative; isolation: isolate; }
.hero-co::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 30%, transparent 100%);
}
.hero-co .logo { width: 96px; height: 96px; margin: 0 auto 22px; filter: drop-shadow(0 12px 22px rgba(255, 91, 46, .25)); }
.hero-co h1 { font-size: clamp(38px, 6vw, 64px); max-width: 16ch; margin: 0 auto; }
.hero-co .lead { margin: 20px auto 30px; max-width: 46ch; }
.hero-co .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Hero: big app icons gliding through in 3D over a dotted background (assets/hero.js) ---------- */
.hero-float {
  --text: #1D1D1F; --muted: #6E6E76; --line: #DADAE0;
  color: var(--text); color-scheme: light; overflow: hidden; isolation: isolate;
  background: #F4F4F6 radial-gradient(rgba(0, 0, 0, .11) 1px, transparent 1.5px) 0 0 / 22px 22px;
  /* the header sits on top of the hero while it's in view */
  margin-top: -68px; padding-block: 120px 40px; text-align: center;
}
.hero-float::before { display: none; }
/* the dots that light up under the mouse are drawn on top of the CSS dots, in the same grid */
.hero-float .dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-float .hero-center { position: relative; z-index: 2; }
.hero-float h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; max-width: 17ch; margin: 0 auto; text-wrap: balance; }
.hero-float .lead { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 56ch; margin: 16px auto 24px; }
.hero-float .actions { gap: 14px; }
/* glossy pills, like Mac buttons */
.pill-aqua, .pill-glass { height: 48px; padding: 0 26px; font-size: 17px; font-weight: 600; border-radius: 999px; transform: none; }
.pill-aqua {
  color: #fff; background: linear-gradient(180deg, #7DBBFF 0%, #2F86F6 48%, #1A6FE8 52%, #3C93FA 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(10, 70, 170, .55), 0 6px 16px -6px rgba(26, 111, 232, .7);
  text-shadow: 0 1px 1px rgba(0, 40, 120, .35);
}
.pill-aqua:hover { background: linear-gradient(180deg, #8EC4FF 0%, #3A8DF8 48%, #2277EC 52%, #4A9CFB 100%); }
.pill-glass {
  color: #1D1D1F; background: linear-gradient(180deg, #FFFFFF, #ECECF0);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0, 0, 0, .14), 0 6px 16px -8px rgba(0, 0, 0, .25);
}
.pill-glass:hover { background: linear-gradient(180deg, #FFFFFF, #E3E3E9); }
:lang(ja) .hero-float h1, :lang(ko) .hero-float h1, :lang(zh) .hero-float h1 { letter-spacing: 0; line-height: 1.15; }

/* the icons: one in the middle, its neighbours turned away at the sides */
.carousel { position: relative; z-index: 1; perspective: 1200px; --icon: clamp(160px, 16.5vw, 240px); --room: 110px;
  /* extra room above and below so the mask doesn't cut off the icons' shadows */
  height: calc(var(--icon) * 1.3 + var(--room) * 2); margin: calc(22px - var(--room)) 0 calc(var(--room) * -1); }
/* the row fades in on the left and out on the right */
.carousel { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); }
.app3d {
  position: absolute; left: 50%; top: 50%; width: var(--icon); height: var(--icon); margin: calc(var(--icon) / -2) 0 0 calc(var(--icon) / -2);
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent; cursor: pointer; will-change: transform;
}
.app3d .face {
  position: absolute; inset: 0; display: block; border-radius: 23%; transform-style: preserve-3d;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
/* a few layers behind the icon give it a thin edge in the icon's own colour */
.app3d .face::before, .app3d .face::after { content: ""; position: absolute; inset: 0; border-radius: 23%; background: var(--edge); }
.app3d .face::before { transform: translateZ(-14px); box-shadow: 0 40px 70px -22px rgba(20, 20, 40, .45); }
.app3d .face::after { transform: translateZ(-7px); filter: brightness(1.25); }
.app3d img { position: relative; display: block; width: 100%; height: 100%; border-radius: 23%; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.app3d:focus-visible { outline: none; }
.app3d:focus-visible .face img { box-shadow: 0 0 0 4px #F4F4F6, 0 0 0 7px #2C6DE6; }

.now { position: relative; z-index: 2; height: 46px; margin-top: 6px; }
.now > div { position: absolute; left: 0; right: 0; opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.now > div.on { opacity: 1; transform: none; }
.now b { display: block; font-size: 18px; letter-spacing: -.01em; }
.now .cat { color: var(--muted); font-size: 14px; font-weight: 600; }

.fcard {
  position: absolute; z-index: 6; left: 0; top: 0; width: 290px; padding: 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .97); border: 1px solid rgba(0, 0, 0, .1); color: #1D1D1F;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .35); text-align: start;
  opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .18s ease, transform .18s ease;
}
.fcard.show { opacity: 1; transform: none; }
.fcard[hidden] { display: none; }
.fcard .top { display: flex; gap: 12px; align-items: center; }
.fcard .top img { width: 48px; height: 48px; border-radius: 11px; flex: none; }
.fcard h3 { font-size: 17px; letter-spacing: -.01em; }
.fcard .cat { color: #6E6E76; font-size: 13px; font-weight: 600; margin-top: 1px; }
.fcard p { margin: 12px 0 14px; color: #55555C; font-size: 14px; line-height: 1.5; }
.fcard .links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fcard .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.fcard .store-badge img { height: 40px; width: auto; }

/* the header becomes a menu bar while it sits on the hero */
.mb-extras { display: none; }
body.on-hero .site-header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.on-hero.on-rows .site-header { background: rgba(244, 244, 246, .82); border-bottom-color: rgba(0, 0, 0, .07); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
body.on-hero .site-header .brand, body.on-hero .site-header .nav a { color: #1D1D1F; }
body.on-hero .site-header .btn { background: none; color: #1A6FE8; padding: 0 4px; height: auto; }
body.on-hero .site-header .btn:hover { text-decoration: underline; transform: none; }
@media (min-width: 900px) {
  body.on-hero .mb-extras { display: inline-flex; align-items: center; gap: 12px; color: #6E6E76; font-size: 15px; font-weight: 500; margin-inline-start: 18px; }
  body.on-hero .mb-extras svg { height: 13px; width: auto; }
}
@media (max-width: 640px) {
  .hero-float { padding-block: 112px 40px; }
  .carousel { --icon: 46vw; margin-top: calc(10px - var(--room)); }
  .fcard { width: min(300px, calc(100vw - 32px)); }
}
@media (max-width: 480px) { .hero-float { margin-top: -60px; } }

/* ---------- The apps: a panel per app with its information and the live demo in an iPhone (assets/showcase.js) ---------- */
/* same dotted paper as the hero so the two flow into each other */
#apps, .showcase {
  background: #F4F4F6 radial-gradient(rgba(0, 0, 0, .11) 1px, transparent 1.5px) 0 0 / 22px 22px;
  color: #1D1D1F; color-scheme: light; --text: #1D1D1F; --muted: #6E6E76; --line: #DADAE0; --surface: #fff;
}
#apps .section-head { margin-bottom: 0; }
.showcase { position: relative; z-index: 0; padding: 32px 0 96px; }
.sc-row { scroll-margin-top: 88px; }
.sc-row + .sc-row { margin-top: 28px; }
.sc-panel { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 32px; align-items: center; padding: 56px 64px; border-radius: 40px;
  background: #fff radial-gradient(58% 72% at 80% 50%, var(--glow), transparent 72%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 30px 60px -44px rgba(20, 20, 40, .3); }

/* the app icon, flat and straight, above the information */
.sc-icon { display: block; width: 112px; height: 112px; margin-bottom: 28px; }
.sc-icon img { display: block; width: 100%; height: 100%; border-radius: 23%; box-shadow: 0 14px 28px -14px rgba(20, 20, 40, .4); }

.showcase .sc-text { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.showcase .sc-text .top { display: block; }
.showcase .sc-text .top img { display: none; }
.showcase .sc-text h3 { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.showcase .sc-text .cat { font-size: 15px; margin-top: 8px; }
.showcase .sc-text > p { font-size: 18px; line-height: 1.5; max-width: 46ch; margin: 18px 0 20px; }
.showcase .sc-text ul { font-size: 16px; gap: 10px; margin-bottom: 28px; }

/* the iPhone: plum metal edge, black glass front.
   Rounded layers make the edge, flat panels keep it solid when seen at an angle. */
.sc-right { --phs: .88; position: relative; justify-self: center; width: calc(346px * var(--phs)); height: calc(720px * var(--phs)); }
.phone3d { --m1: #3B1A34; --m2: #8A4678; --m3: #5C2B52; position: absolute; left: 50%; top: 50%; width: 340px; height: 720px; margin: -360px 0 0 -170px; perspective: 1700px; transform: scale(var(--phs)); }
.ph-body { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.ph-slice, .ph-front { position: absolute; inset: 0; border-radius: 56px; }
.ph-slice { transform: translateZ(calc((var(--k) - 5.5) * 1.4px)); background: linear-gradient(90deg, var(--m1), var(--m2) 10%, var(--m3) 32%, var(--m1) 50%, var(--m3) 70%, var(--m2) 90%, var(--m1)); }
.ph-side, .ph-cap { position: absolute; transform-style: preserve-3d; }
.ph-side { top: 56px; bottom: 56px; width: 17px; background: linear-gradient(90deg, var(--m1), var(--m3) 28%, var(--m2) 50%, var(--m3) 72%, var(--m1)); }
.ph-l { left: -8.5px; transform: rotateY(-90deg); }
.ph-r { right: -8.5px; transform: rotateY(90deg); }
.ph-cap { left: 56px; right: 56px; height: 17px; background: linear-gradient(var(--m1), var(--m3) 28%, var(--m2) 50%, var(--m3) 72%, var(--m1)); }
.ph-t { top: -8.5px; transform: rotateX(90deg); }
.ph-b { bottom: -8.5px; transform: rotateX(-90deg); }
.ant { position: absolute; display: block; left: 0; right: 0; height: 4px; background: #17080F; }
.pb { position: absolute; left: 3px; right: 3px; border-radius: 3px; transform: translateZ(3px); background: linear-gradient(90deg, var(--m1), var(--m2) 45%, var(--m3)); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .5); }
.pb-act { top: 14%; height: 6%; }
.pb-vup { top: 25%; height: 11%; }
.pb-vdn { top: 39%; height: 11%; }
.pb-pwr { top: 28%; height: 16%; }
.pb-cam { top: 62%; height: 9%; }
.usbc { position: absolute; left: 50%; top: 4px; width: 42px; height: 9px; margin-left: -21px; border-radius: 5px; background: #0C0C0D; }
.grill { position: absolute; top: 6.5px; width: 46px; height: 4px; background: radial-gradient(circle, #0C0C0D 1.4px, transparent 1.6px) 0 0 / 6px 4px; }
.grill.gl { left: 22%; }
.grill.gr { right: 22%; }

.ph-front { transform: translateZ(8.5px); background: #050505;
  box-shadow: inset 0 0 0 2.5px var(--m2), inset 0 0 0 3.5px #1B0D18, inset 0 0 0 5px #000, 0 44px 70px -34px rgba(30, 10, 40, .5); }
.ph-screen { position: absolute; inset: 12px; border-radius: 45px; overflow: hidden; background: #000; -webkit-mask-image: -webkit-radial-gradient(white, black); }
/* the app's normal demo embed, shifted so only its phone screen (316 x 696 at 52, 76.4 in a 420px-wide embed) shows.
   It's taller than the embed's page, so the page inside never scrolls and scrolling over the phone scrolls this page. */
.sc-frame { position: absolute; left: -52px; top: -76.39px; width: 420px; height: 1200px; border: 0; background: transparent; }
.ph-glare { position: absolute; inset: 12px; border-radius: 45px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 24%, rgba(255, 255, 255, 0) 38%); }

/* the buttons as seen from the front. They stay on the phone in every state and slide from the middle of the edge
   to the front plane as it finishes turning (--r goes to 0), so nothing changes when it becomes flat. */
.ph-keys { position: absolute; top: 56px; bottom: 56px; width: 3px; transform: translateZ(calc((1 - var(--r, 0)) * 8.5px)); }
.ph-kl { left: -3px; }
.ph-kr { right: -3px; }
.ph-keys b { position: absolute; left: 0; right: 0; background: linear-gradient(90deg, var(--m1), var(--m2) 45%, var(--m3)); }
.ph-kl b { border-radius: 2px 0 0 2px; }
.ph-kr b { border-radius: 0 2px 2px 0; }

/* at rest the phone is an ordinary flat layer so the live demo stays sharp */
.phone3d.flat { perspective: none; }
.phone3d.flat .ph-body { transform-style: flat; }
.phone3d.flat .ph-slice, .phone3d.flat .ph-cap, .phone3d.flat .ph-side { display: none; }
.phone3d.flat .ph-front, .phone3d.flat .ph-keys { transform: none; }

/* less room: the demo keeps its size next to the information, and on phones it goes below it */
@media (max-width: 1080px) {
  .sc-panel { grid-template-columns: minmax(0, 1fr) auto; padding: 48px 40px; }
  .sc-icon { width: 96px; height: 96px; margin-bottom: 24px; }
}
@media (max-width: 760px) {
  .sc-panel { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 36px 24px 44px; border-radius: 32px; background: #fff radial-gradient(90% 44% at 50% 76%, var(--glow), transparent 72%); }
  .sc-right { --phs: .8; }
}
@media (max-width: 400px) { .sc-right { --phs: .74; } }

/* app cards */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .apps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.app-card .top { display: flex; gap: 16px; align-items: center; }
.app-card .top img { width: 72px; height: 72px; border-radius: 17px; flex: none; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.app-card h3 { font-size: 21px; }
.app-card .cat { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 3px; }
.app-card .stars { color: #FFB300; font-size: 14px; letter-spacing: 1px; margin-top: 4px; min-height: 20px; }
.app-card .stars b { color: var(--text); letter-spacing: 0; margin-inline-start: 4px; }
.app-card > p { color: var(--muted); margin: 18px 0 14px; font-size: 16px; }
.app-card ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.app-card li { display: flex; gap: 10px; }
.app-card li::before { content: "✓"; color: var(--green); font-weight: 800; }
.app-card .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.app-card .links .store-badge img { height: 44px; }
.app-card .links a.more { font-weight: 700; font-size: 15px; }
.app-card .legal-links { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.app-card .legal-links a { color: var(--muted); }

/* one section per app: card on the left, live demo (or screenshots) on the right */
.app-sec { padding-block: 28px; }
.app-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.app-row .app-card { max-width: 520px; justify-self: end; width: 100%; }
.app-demo { min-width: 0; }
.demo-frame { display: block; width: 100%; max-width: 440px; height: 900px; margin: 0 auto; border: 0; background: transparent; }
@media (max-width: 900px) {
  .app-row { grid-template-columns: 1fr; gap: 20px; }
  .app-row .app-card { justify-self: center; max-width: 560px; }
}
/* about */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }
.values .card h3 { font-size: 19px; }
.contact-line { text-align: center; margin-top: 36px; font-size: 18px; color: var(--muted); }
.contact-line a { font-weight: 700; }
.site-note { max-width: 780px; margin: 28px auto 0; color: var(--muted); font-size: 14px; text-align: center; }

/* long single words (German, Dutch, Norwegian titles) must wrap on phones instead of widening the page */
@media (max-width: 560px) {
  h1, h2, h3 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
}
