/* Attunely home · the ending: FAQ + footer (round 9, owner: 50% shorter). Loaded last, unlayered: it overrides the
   foundation's faq/footer rules in home.css and desktop.css.
   FAQ: one frosted day card, five questions collapsed (details/summary; one open at a time), every answer kept and
   leading with its verdict in ink. Phone ≤ 260 px closed. The FAQ always sits on the day sky (both themes), so the card
   is the day's pearl in both. No motion but the answer settling in and the plus turning to a cross (transform/opacity).
   Footer: the brand signs the morning in one compact block (≤ 230 px on a phone), on the sky, in the sky's tone. */

/* ── FAQ ── */
.faq { padding: 30px 0 0; }
@media (max-width: 359.98px) { .faq { padding-top: 20px; } }   /* a 320 phone: two-line questions, the 260 px budget holds */
/* phone: the accordion stands alone (the questions say what it is; a small left-aligned label broke the page's centred
   display rhythm and a display-size one does not fit the 260 px budget). The heading stays for screen readers and the
   anchor; desktop shows it in its own column */
.faq__title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; font-size: 20px; line-height: 24px; letter-spacing: .04em; color: var(--title-ink); }
:lang(en) .faq__title { letter-spacing: 0; }
:root[data-sky-tone="dark"] .faq__title { color: var(--cream); text-shadow: var(--sky-halo); }
.faq__list {
  width: var(--col); margin: 0 auto; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .68));
  box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(74, 90, 154, .12), 0 18px 34px -18px rgba(60, 74, 122, .45);
}
.faq__qa + .faq__qa { border-top: 1px solid rgba(29, 22, 64, .08); }
.faq__qa > summary {
  position: relative; display: flex; align-items: center; min-height: 44px; padding: 8px 52px 8px 18px; box-sizing: border-box;
  font: 600 17px/1.3 var(--font-body); letter-spacing: .01em; color: var(--ink); text-wrap: balance;
  list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.faq__qa > summary::-webkit-details-marker { display: none; }
/* the plus: an ink cross on a soft disc; open, it turns to an ×. Never lime (lime is the action) */
.faq__qa > summary::after {
  content: ""; position: absolute; right: 14px; top: calc(50% - 12px); width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 10px no-repeat, rgba(29, 22, 64, .07);
  transition: rotate .32s var(--ease);
}
.faq__qa[open] > summary::after { rotate: 45deg; }
.faq__qa > summary:active { background: rgba(29, 22, 64, .04); }
.faq__qa > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; border-radius: inherit; }
.faq__qa > p { margin: -2px 0 0; padding: 0 18px 14px; font: 400 17px/1.55 var(--font-body); color: var(--ink-2); text-wrap: pretty; }
.faq__qa > p b { font-weight: 600; color: var(--ink); }     /* the verdict: the glance lands here */
:root:not([data-motion="off"]) .faq__qa[open] > p { animation: faq-in .34s var(--ease) both; }
@keyframes faq-in { from { opacity: 0; translate: 0 -6px; } }
:root[data-motion="off"] .faq__qa > summary::after { transition: none; }
:lang(en) .faq__qa > summary { letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) { .faq__qa > summary:hover { background: rgba(29, 22, 64, .035); } }

/* ── footer: the brand signs the morning ── */
.foot {
  position: relative; isolation: isolate;
  padding: 20px var(--gut) calc(12px + env(safe-area-inset-bottom, 0px));
  background: none; color: var(--cream); text-align: center;
}
:root[data-sky-tone="light"] .foot { color: var(--ink); }
/* by day the sky brightens where the brand signs (static; the light dies out before every edge of the box: no seam) */
:root[data-sky-tone="light"] .foot::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 14%; pointer-events: none;
  background: radial-gradient(62% 50% at 50% 50%, rgba(255, 255, 255, .4), rgba(255, 255, 255, .15) 52%, rgba(255, 255, 255, 0) 100%);
}
.foot__brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: inherit; }
.foot__brand .mark { width: 30px; }
.foot__brand b { font-size: 17px; line-height: 1.2; letter-spacing: .04em; }
:lang(en) .foot__brand b { font-size: 19px; letter-spacing: .01em; }
/* the mark on a dark ground (the night fallback): the star and dot in their bright night colours, with a soft glow */
.foot .mark__glow { display: none; }
:root:not([data-sky-tone="light"]) .foot .mark__glow { display: inline; opacity: .6; }
:root:not([data-sky-tone="light"]) .foot .mark__star { fill: #38C6FF; }
:root:not([data-sky-tone="light"]) .foot .mark__dot { fill: #FF3EA5; }
@supports (color: color(display-p3 1 1 1)) {
  :root:not([data-sky-tone="light"]) .foot .mark__star { fill: color(display-p3 .16 .78 1); }
  :root:not([data-sky-tone="light"]) .foot .mark__dot { fill: color(display-p3 1 .24 .64); }
}
/* the links wrap like words, balanced, 44 px targets */
.foot__links { display: block; margin: 2px auto 0; max-width: none; text-align: center; text-wrap: balance; }
.foot__links a {
  position: relative; display: inline-grid; place-items: center; min-height: 44px; padding: 0 10px; vertical-align: top;
  font: 600 15px/1 var(--font-body); color: inherit; text-decoration: none; letter-spacing: .02em;
  -webkit-tap-highlight-color: transparent;
}
.foot__links a:active { opacity: .6; }
:lang(en) .foot__links a { letter-spacing: .01em; }
/* the small print flows as one balanced paragraph (three lines on a phone, not five) */
.foot__legal { margin: 4px auto 0; max-width: 30em; font: 500 12px/1.6 var(--font-body); color: var(--cream-3); letter-spacing: .01em; text-wrap: balance; }
.foot__legal > span { display: inline; }
:root[data-sky-tone="light"] .foot__legal { color: var(--ink); }   /* full ink on the day sky: ≥ 4.5:1 at its blue foot */
:root[data-theme="light"] .foot__legal { color: var(--on-sky); }

/* ── desktop ≥1024: the FAQ and the colophon share one 980 px measure ── */
@media (min-width: 1024px) {
  .faq::after { content: none; }
  .faq {
    display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 56px; align-items: start;
    width: min(calc(100% - 2 * var(--frame-x)), 980px); margin: 0 auto; padding: 36px 0 8px;
  }
  .faq__title { position: static; width: auto; height: auto; margin: 6px 0 0; overflow: visible; clip-path: none; white-space: normal; font-size: 40px; line-height: 1.15; letter-spacing: .02em; }
  .faq__list { width: auto; margin: 0; border-radius: 26px; }
  .faq__qa > summary { min-height: 60px; padding: 12px 64px 12px 26px; font-size: 18px; }
  .faq__qa > summary::after { right: 20px; top: calc(50% - 14px); width: 28px; height: 28px; background-size: 12px 2px, 2px 12px, auto; }
  .faq__qa > p { padding: 0 26px 20px; font-size: 17px; }

  .foot {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 32px;
    padding: 32px max(var(--frame-x), calc((100% - 980px) / 2)) 36px; text-align: left;
  }
  :root[data-sky-tone="light"] .foot::before { inset: 0 0 18%; background: radial-gradient(46% 50% at 50% 50%, rgba(255, 255, 255, .3), rgba(255, 255, 255, .1) 54%, rgba(255, 255, 255, 0) 100%); }
  .foot__brand { grid-column: 1; gap: 10px; }
  .foot__brand .mark { width: 36px; }
  .foot__brand b { font-size: 19px; }
  .foot__links { grid-column: 2; display: flex; justify-content: flex-end; margin: 0 -13px 0 0; }
  .foot__links a { padding-inline: 13px; }
  .foot__links a + a::before {     /* one line on desktop: quiet dots between the links */
    content: ""; position: absolute; left: -2px; top: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%;
    background: currentColor; opacity: .36;
  }
  .foot__links a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
  .foot__legal { grid-column: 1 / -1; max-width: none; margin: 12px 0 0; }
  .foot__legal > span + span { margin-left: .5em; }
}
