/* ==========================================================================
   PinQuick website — tokens + components
   Built from the website design (Claude Design canvas). The theme follows
   the system setting; "mobile" rules sit under @media (max-width: 767px).
   ========================================================================== */

/* --- Font (self-hosted, SIL OFL 1.1 — see fonts/OFL.txt) ------------------ */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens: light (default) -------------------------------------------- */
:root {
  color-scheme: light dark;
}
.pq {
  --bg: #F5F3F2;
  --card: #FFFFFF;
  --raised: #FFFFFF;
  --fill: #EDE9E8;
  --fill-hover: #E4DFDD;
  --fill-pressed: #DAD4D1;
  --text: #1C1817;
  --text-2: #6B6260;
  --line: #ECE7E5;
  --card-line: transparent;
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-pressed: #3730A3;
  --on-accent: #FFFFFF;
  --accent-soft: #ECEBFE;
  --on-accent-soft: #3730A3;
  --brand: #4F46E5;
  --on-brand: #FFFFFF;
  --device: #1C1817;

  /* App screens inside the phone mockups */
  --m-field: #F5F3F2;
  --m-danger: #C0262D;
  --m-disabled: rgba(28, 24, 23, 0.3);
  --m-widget-bg: #FFFFFF;
  --m-widget-text: #1C1817;
  --m-widget-muted: #5E5E63;
  --m-shade: #EDE9E8;
  --m-tile-bg: #FFFFFF;
  --m-tile-text: #1C1817;
  --m-dialog-bg: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(28, 24, 23, 0.06), 0 4px 12px rgba(28, 24, 23, 0.04);
  --shadow-md: 0 2px 6px rgba(28, 24, 23, 0.05), 0 16px 40px rgba(28, 24, 23, 0.08);
  --shadow-lg: 0 24px 64px rgba(28, 24, 23, 0.18);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --container: 1200px;
  --gutter: 24px;
  --margin: 24px;
  --phone-scale: 0.718;

  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* --- Tokens: dark -------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  .pq {
    --bg: #0F0D0D;
    --card: #1D1A1A;
    --raised: #272323;
    --fill: #272323;
    --fill-hover: #312C2C;
    --fill-pressed: #3A3434;
    --text: #F5EFEE;
    --text-2: #B5ABA9;
    --line: #2E2928;
    --card-line: #2E2928;
    --accent: #A5A0FF;
    --accent-hover: #B9B5FF;
    --accent-pressed: #8F89FF;
    --on-accent: #17125E;
    --accent-soft: #26234F;
    --on-accent-soft: #C9C6FF;
    --device: #000000;

    --m-field: #272323;
    --m-danger: #FF6B6B;
    --m-disabled: rgba(245, 239, 238, 0.3);
    --m-widget-bg: #2C2C2E;
    --m-widget-text: #FFFFFF;
    --m-widget-muted: #C7C7CC;
    --m-shade: #1C1B1F;
    --m-tile-bg: #2E2C31;
    --m-tile-text: #F5EFEE;
    --m-dialog-bg: #272323;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  }
}

.pq *, .pq *::before, .pq *::after { box-sizing: border-box; }
.pq a { color: var(--accent); }
.pq img, .pq svg { max-width: none; }
.pq h4 { margin: 0; }

/* --- Focus ---------------------------------------------------------------- */
.pq a:focus-visible, .pq button:focus-visible, .pq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 50; padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent) !important; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: var(--s-3); }

/* --- Type ---------------------------------------------------------------- */
.t-display { margin: 0; font-size: 64px; line-height: 68px; font-weight: 800; letter-spacing: -1.6px; }
.t-h1 { margin: 0; font-size: 48px; line-height: 56px; font-weight: 800; letter-spacing: -1.2px; }
.t-h2 { margin: 0; font-size: 40px; line-height: 48px; font-weight: 800; letter-spacing: -0.8px; }
.t-h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.2px; }
.t-lead { margin: 0; font-size: 20px; line-height: 32px; font-weight: 400; color: var(--text-2); }
.t-body { margin: 0; font-size: 16px; line-height: 26px; font-weight: 400; }
.t-small { margin: 0; font-size: 14px; line-height: 22px; font-weight: 500; }
.t-eyebrow { margin: 0; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.t-muted { color: var(--text-2); }

/* --- Layout --------------------------------------------------------------- */
.container { max-width: calc(var(--container) + 2 * var(--margin)); margin: 0 auto; padding: 0 var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-5); }
.col-1-4 { grid-column: 1 / 5; }
.col-1-5 { grid-column: 1 / 6; }
.col-1-6 { grid-column: 1 / 7; }
.col-1-7 { grid-column: 1 / 8; }
.col-5-12 { grid-column: 5 / 13; }
.col-6-12 { grid-column: 6 / 13; }
.col-7-12 { grid-column: 7 / 13; }
.col-8-12 { grid-column: 8 / 13; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.section { padding: var(--s-9) 0; }
.section-head { display: flex; flex-direction: column; gap: var(--s-3); max-width: 720px; margin-bottom: var(--s-7); }
.stack { display: flex; flex-direction: column; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.gap-6 { gap: var(--s-6); }
.gap-7 { gap: var(--s-7); }

/* --- Logo ------------------------------------------------------------------ */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; text-decoration: none; font-size: 20px; line-height: 24px; font-weight: 800; letter-spacing: -0.3px; border-radius: var(--r-sm); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-mark svg { width: 20px; height: 26px; }

/* --- Header ---------------------------------------------------------------- */
.site-header { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: var(--s-6); height: 72px; }
.nav { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.nav-link { display: inline-flex; align-items: center; height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill); color: var(--text-2) !important; font-size: 16px; font-weight: 600; text-decoration: none; }
.nav-link:hover { color: var(--text) !important; background: var(--fill); }
.nav-link:active { background: var(--fill-pressed); }
.nav-link[aria-current="page"] { color: var(--text) !important; background: var(--fill); }

/* Mobile menu: a <details> so it also works without JavaScript */
.menu { display: none; margin-left: auto; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: var(--fill); color: var(--text); font: inherit; cursor: pointer; list-style: none; }
.menu-btn::-webkit-details-marker { display: none; }
.menu-btn:hover { background: var(--fill-hover); }
.menu-btn:active { background: var(--fill-pressed); }
.menu-btn .i-close, .menu[open] .menu-btn .i-open { display: none; }
.menu[open] .menu-btn .i-close { display: block; }
.mobile-menu { position: absolute; z-index: 20; top: calc(100% + var(--s-2)); left: 16px; right: 16px; background: var(--raised); border-radius: var(--r-lg); box-shadow: var(--shadow-md); border: 1px solid var(--card-line); padding: var(--s-2); display: flex; flex-direction: column; gap: var(--s-1); }
.mobile-menu .nav-link { height: 52px; font-size: 18px; border-radius: var(--r-md); color: var(--text) !important; }
.mobile-menu .menu-foot { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-4) var(--s-2); border-top: 1px solid var(--line); margin-top: var(--s-1); }

/* --- Language switch ------------------------------------------------------- */
.lang { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); background: var(--fill); }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 var(--s-3); border-radius: var(--r-pill); color: var(--text-2) !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.lang a:hover { color: var(--text) !important; background: var(--fill-hover); }
.lang a[aria-current="true"] { background: var(--card); color: var(--text) !important; box-shadow: var(--shadow-sm); }

/* --- Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); height: 52px; padding: 0 var(--s-5); border: 0; border-radius: var(--r-pill); font: inherit; font-size: 16px; line-height: 22px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: var(--on-accent) !important; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-pressed); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent) !important; font-weight: 700; text-decoration: none; border-radius: var(--r-sm); }
.link svg { width: 18px; height: 18px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link:active { color: var(--accent-pressed) !important; }

/* --- Store badges ------------------------------------------------------------ */
/* Official, unmodified badges, localized; Apple's white badge in dark mode.
   Both at the same height, with clear space of at least 1/4 of the badge
   height around each (the 12 px gap). */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.badge { display: block; border-radius: 9px; }
.badge img { display: block; height: 48px; width: auto; }

/* --- Chips & checks ------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: var(--s-2); height: 32px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--accent-soft); color: var(--on-accent-soft); font-size: 14px; line-height: 20px; font-weight: 700; align-self: flex-start; }
.checks { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin: 0; padding: 0; list-style: none; }
.checks li { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 15px; line-height: 22px; font-weight: 600; }
.check-dot { width: 22px; height: 22px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--on-accent-soft); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.check-dot svg { width: 14px; height: 14px; }

/* --- Cards ------------------------------------------------------------------ */
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: var(--s-6); }
.card-lg { border-radius: var(--r-xl); }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--on-accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-tile svg { width: 24px; height: 24px; }

/* Step item */
.steps { margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: var(--s-3); }
.step-num { width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; margin-bottom: var(--s-2); }

/* Feature tile */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.tile { display: flex; flex-direction: column; gap: var(--s-3); padding: 28px; }

/* Platform card ("Save from anywhere") */
.platform { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-6); }
.platform-head { display: flex; align-items: center; gap: var(--s-4); }
.mock-area { background: var(--bg); border-radius: var(--r-lg); padding: var(--s-5); min-height: 220px; display: flex; align-items: center; justify-content: center; gap: var(--s-4); flex-wrap: wrap; }
.way { display: flex; gap: var(--s-4); align-items: flex-start; }
.way + .way { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.way .icon-tile { width: 40px; height: 40px; border-radius: var(--r-md); }
.way .icon-tile svg { width: 20px; height: 20px; }
.way h4 { font-weight: 700; }
/* Android Quick Settings mock: shrinks to fit narrow cards */
.qs-mock { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); max-width: 100%; }
.qs-shade { background: var(--m-shade); border-radius: 24px; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 188px)); gap: 8px; max-width: 100%; }
.qs-tile { height: 64px; border-radius: 18px; background: var(--m-tile-bg); color: var(--m-tile-text); display: flex; align-items: center; gap: 12px; padding: 0 14px; min-width: 0; }
.qs-tile span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-note { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--s-2); margin-left: var(--s-2); border-radius: var(--r-pill); background: var(--fill); color: var(--text-2); font-size: 12px; line-height: 16px; font-weight: 700; vertical-align: 2px; }
.note-box { margin: 0; background: var(--bg); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); color: var(--text-2); font-size: 14px; line-height: 22px; font-weight: 500; }

/* Soft accent panel ("Still stuck?", privacy summary) */
.callout { background: var(--accent-soft); border-radius: var(--r-xl); padding: var(--s-8); }
.callout .t-eyebrow, .callout .t-h2, .callout .t-h3 { color: var(--on-accent-soft); }
.callout-sm { padding: var(--s-6); }
.callout-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.facts { display: flex; flex-direction: column; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: var(--s-3); align-items: flex-start; background: var(--card); border-radius: var(--r-md); padding: var(--s-4); font-size: 16px; line-height: 24px; font-weight: 500; }
.facts .check-dot { margin-top: 1px; background: var(--accent); color: var(--on-accent); }

/* --- FAQ accordion ----------------------------------------------------------- */
.faq { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 0 var(--s-6); }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 72px; padding: var(--s-4) 0; list-style: none; cursor: pointer; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--text); border-radius: var(--r-sm); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary:active { color: var(--accent-pressed); }
.faq-chev { width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--fill); color: var(--text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-chev svg { width: 18px; height: 18px; }
.faq-item[open] .faq-chev { transform: rotate(180deg); background: var(--accent-soft); color: var(--on-accent-soft); }
.faq-a { padding: 0 0 var(--s-5); color: var(--text-2); display: flex; flex-direction: column; gap: var(--s-3); max-width: 760px; }
.faq-a p { margin: 0; }
.steps-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-2); counter-reset: step; }
.steps-list li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--text); font-weight: 500; }
.steps-list li::before { counter-increment: step; content: counter(step); width: 26px; height: 26px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--on-accent-soft); font-size: 13px; line-height: 26px; font-weight: 800; text-align: center; flex-shrink: 0; }
.path { display: flex; gap: var(--s-3); align-items: baseline; flex-wrap: wrap; }
.path-os { display: inline-flex; align-items: center; height: 26px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--fill); color: var(--text); font-size: 13px; font-weight: 700; }
.path-steps { color: var(--text); font-weight: 600; }
.topic-title { padding-top: 20px; }

/* Support contact */
.contact { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6); }
.contact-head { display: flex; align-items: center; gap: var(--s-3); }
.contact-mail { font-size: 24px; line-height: 32px; font-weight: 800; letter-spacing: -0.3px; text-decoration: none; color: var(--text) !important; border-radius: var(--r-sm); overflow-wrap: anywhere; }
.contact-mail:hover { color: var(--accent) !important; }
.contact .btn { align-self: flex-start; }

/* Privacy policy text */
.policy { padding-top: var(--s-2); padding-bottom: var(--s-2); }
.policy section { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5) 0; }
.policy section + section { border-top: 1px solid var(--line); }
.policy p, .policy ul { margin: 0; color: var(--text-2); }
.policy ul { padding-left: 22px; display: flex; flex-direction: column; gap: var(--s-2); }
.policy strong { color: var(--text); font-weight: 700; }
.policy a { font-weight: 600; text-underline-offset: 3px; }

/* --- Phone mockup -------------------------------------------------------------- */
.phone { width: calc(390px * var(--phone-scale) + 20px); height: calc(844px * var(--phone-scale) + 20px); padding: 10px; border-radius: 48px; background: var(--device); box-shadow: var(--shadow-lg); flex-shrink: 0; }
.phone-screen { width: calc(390px * var(--phone-scale)); height: calc(844px * var(--phone-scale)); border-radius: 38px; overflow: hidden; position: relative; }
.phone-screen > .screen { width: 390px; height: 844px; transform: scale(var(--phone-scale)); transform-origin: 0 0; position: relative; font-size: 16px; line-height: normal; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 640px; }
.hero-art .phone { position: relative; }
.hero-blob { position: absolute; width: 460px; height: 460px; border-radius: var(--r-pill); background: var(--accent-soft); }
.duo { position: relative; height: 700px; }
.duo .phone { position: absolute; }
.duo .phone:first-child { left: 0; top: 0; }
.duo .phone:last-child { right: 0; top: 72px; }

/* --- Footer ------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s-7) 0; }
.site-footer .row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.footer-end { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; height: 44px; padding: 0 var(--s-3); border-radius: var(--r-pill); color: var(--text-2) !important; font-size: 15px; font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--text) !important; background: var(--fill); }
.footer-meta { margin: var(--s-5) 0 0; color: var(--text-2); font-size: 14px; line-height: 22px; font-weight: 500; }

/* --- Mobile: 4 columns, 16 px margins ------------------------------------------ */
@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; row-gap: var(--s-4); }
  .grid > [class*="col-"], .grid > [class*="span-"] { grid-column: 1 / -1; }
  .section { padding: var(--s-8) 0; }
  .section-head { margin-bottom: var(--s-6); }
  .t-display { font-size: 40px; line-height: 46px; letter-spacing: -1px; }
  .t-h1 { font-size: 34px; line-height: 40px; letter-spacing: -0.8px; }
  .t-h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.5px; }
  .t-lead { font-size: 18px; line-height: 28px; }
  .site-header .bar { height: 64px; }
  .site-header .bar > .nav, .site-header .bar > .lang { display: none; }
  .menu { display: block; }
  .card, .platform, .contact { padding: var(--s-5); }
  .callout { padding: var(--s-5); border-radius: var(--r-lg); }
  .faq { padding: 0 var(--s-4); }
  .faq-item summary { font-size: 17px; line-height: 24px; min-height: 64px; }
  .badge img { height: 44px; }
  .phone { --phone-scale: 0.615; border-radius: 42px; }
  .phone-screen { border-radius: 33px; }
  .hero-art { min-height: 560px; }
  .hero-blob { width: 320px; height: 320px; }
  .duo { height: auto; display: flex; justify-content: center; }
  .duo .phone { position: static; }
  .duo .phone:last-child { display: none; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .tile { padding: var(--s-5); }
  .policy { padding-top: 0; padding-bottom: 0; }
  .site-footer .row { flex-direction: column; align-items: flex-start; }
}

/* Narrow phones: one full-size tile instead of two squeezed ones */
@media (max-width: 479px) {
  .qs-shade { grid-template-columns: minmax(0, 188px); }
  .qs-tile + .qs-tile { display: none; }
}

/* --- Motion ----------------------------------------------------------------------
   Colour changes always ease. Everything that moves sits behind
   prefers-reduced-motion, so with "reduce motion" on the page is static.
   Scroll reveals (.reveal) only hide content when JavaScript runs (.js). */
:root { --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1); }
.nav-link, .lang a, .menu-btn, .btn, .link, .footer-links a, .faq-item summary, .contact-mail {
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  /* Entrance on load: hero text, support intro */
  .hero-in > *, .rise { animation: rise 0.8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  .hero-in > :nth-child(2) { --i: 1; }
  .hero-in > :nth-child(3) { --i: 2; }
  .hero-in > :nth-child(4) { --i: 3; }
  .hero-in > :nth-child(5) { --i: 4; }
  @keyframes rise { from { opacity: 0; translate: 0 20px; } }

  /* Hero phone: rises in, then floats; list rows slide in; the save button pulses */
  .hero-blob { animation: blob-in 1.2s var(--ease-out) 0.15s both, breathe 9s ease-in-out 1.4s infinite; }
  @keyframes blob-in { from { opacity: 0; scale: 0.6; } }
  @keyframes breathe { 50% { scale: 1.06; } }
  .hero-art .phone { animation: phone-in 1s var(--ease-out) 0.25s both, float 6s ease-in-out 1.3s infinite; }
  @keyframes phone-in { from { opacity: 0; translate: 0 56px; rotate: 3deg; } }
  @keyframes float { 50% { translate: 0 -10px; } }
  .pl-row { animation: row-in 0.5s var(--ease-out) both; animation-delay: calc(0.75s + var(--i, 0) * 90ms); }
  @keyframes row-in { from { opacity: 0; translate: 16px 0; } }
  .pl-save { animation: pulse 2.6s ease-out 2s infinite; }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
    70%, 100% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 0%, transparent); }
  }

  /* Scroll reveal; --d staggers items in a row */
  .js .reveal {
    opacity: 0;
    translate: 0 32px;
    transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out), transform 0.25s ease, box-shadow 0.25s ease;
    transition-delay: var(--d, 0ms), var(--d, 0ms), 0s, 0s;
  }
  .js .reveal.is-visible { opacity: 1; translate: none; }

  /* Hover: cards lift, badges and the link arrow nudge, buttons press */
  .lift { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .badge { transition: transform 0.2s ease; }
  .link svg { transition: translate 0.2s ease; }
  .btn { transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease; }
  .btn:active { transform: scale(0.97); }
  @media (hover: hover) {
    .lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
    .badge:hover { transform: translateY(-2px); }
    .link:hover svg { translate: 4px 0; }
  }

  /* FAQ and mobile menu */
  .faq-chev { transition: transform 0.25s var(--ease-out), background-color 0.2s ease; }
  .faq-item[open] .faq-a { animation: faq-open 0.35s var(--ease-out) both; }
  @keyframes faq-open { from { opacity: 0; translate: 0 -8px; } }
  .menu[open] .mobile-menu { animation: menu-in 0.22s var(--ease-out) both; transform-origin: top right; }
  @keyframes menu-in { from { opacity: 0; translate: 0 -8px; scale: 0.98; } }

  /* Android Quick Settings loop: tap the tile, "Getting location…", "Location saved" */
  .qs-tap { animation: qs-tap 7s ease-in-out 1s infinite; }
  @keyframes qs-tap {
    0%, 3%, 92%, 100% { background-color: var(--m-tile-bg); color: var(--m-tile-text); scale: 1; }
    6% { scale: 0.94; }
    9%, 88% { background-color: var(--accent); color: var(--on-accent); scale: 1; }
  }
  .qs-dialog { animation: qs-dialog 7s var(--ease-out) 1s infinite both; }
  @keyframes qs-dialog {
    0%, 10% { opacity: 0; translate: 0 8px; scale: 0.96; }
    15%, 88% { opacity: 1; translate: none; scale: 1; }
    95%, 100% { opacity: 0; }
  }
  .qs-spin { animation: spin 0.9s linear infinite; }
  @keyframes spin { to { rotate: 360deg; } }
  .qs-arrow { animation: qs-late 7s ease 1s infinite both; }
  .qs-toast { animation: qs-toast 7s var(--ease-out) 1s infinite both; }
  @keyframes qs-late {
    0%, 44% { opacity: 0; translate: -6px 0; }
    50%, 88% { opacity: 1; translate: none; }
    95%, 100% { opacity: 0; }
  }
  @keyframes qs-toast {
    0%, 48% { opacity: 0; translate: 0 10px; }
    54%, 88% { opacity: 1; translate: none; }
    95%, 100% { opacity: 0; }
  }

  /* iOS widget: a tap every few seconds */
  .ios-widget { animation: widget-tap 5s ease-in-out 1.5s infinite; }
  @keyframes widget-tap {
    0%, 60%, 100% { scale: 1; }
    66% { scale: 0.94; }
    74% { scale: 1.01; }
    80% { scale: 1; }
  }

  /* Map: pins drop in once the phones are revealed, then the chosen one lands */
  .js .duo .pin-drop, .js .duo .pin-sel, .js .duo .pin-shadow { opacity: 0; }
  .js .duo.is-visible .pin-drop { animation: pin-drop 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) both; animation-delay: calc(0.35s + var(--i, 0) * 70ms); }
  .js .duo.is-visible .pin-sel { animation: pin-drop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) 1.3s both, pin-hop 3.2s ease-in-out 2.4s infinite; }
  .js .duo.is-visible .pin-shadow { animation: fade-in 0.4s ease 1.5s both; }
  @keyframes pin-drop { from { opacity: 0; translate: 0 -28px; } to { opacity: 1; } }
  @keyframes pin-hop { 0%, 70%, 100% { translate: none; } 80% { translate: 0 -8px; } 90% { translate: none; } }
  @keyframes fade-in { to { opacity: 1; } }
  .js .duo .map-sheet { translate: 0 110%; }
  .js .duo.is-visible .map-sheet { translate: none; transition: translate 0.7s var(--ease-out) 1.6s; }
}
