/* CodeFlow · pages.css — contact + legal pages
   (contact.html, privacy-policy.html, cookie-policy.html, terms-of-service.html).
   Loaded after style.css; uses its tokens and components. Animations live in pages.js. */

/* =============================================================== shared */
.js [data-pg-art] { visibility: hidden; }
.pg-art { position: relative; width: 100%; justify-self: end; }
.pg-art > svg { display: block; width: 100%; height: auto; overflow: visible; }

/* footer: the page you are on */
.foot-col a.is-current { color: var(--ink); font-weight: 750; }
.foot-col a.is-current::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; vertical-align: .14em;
  background: var(--coral); transform: rotate(45deg);
}

/* ================================================================ legal */
.lg-intro { padding-bottom: clamp(36px, 5vw, 72px); }
.lg-intro-grid { align-items: center; }
.lg-title { max-width: 12ch; }
.lg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 30px; }
.lg-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px;
  padding: 6px 18px 6px 9px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 2px var(--ink);
  font-weight: 650; font-size: .93rem; line-height: 1.2;
}
.lg-pill .tick-clock { width: 24px; height: 24px; }
.lg-pill--soft { background: var(--paper-2); box-shadow: none; padding-left: 14px; }
.lg-pill--soft .shape { margin-top: 4px; }
.lg-emblem { max-width: 440px; aspect-ratio: 400 / 320; }

/* cookie page: the live consent state + settings button */
.ck-state {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 16px;
  max-width: 560px; margin-top: 22px; padding: 14px 14px 14px 16px;
  border-radius: 22px 22px 22px 46px; background: var(--card);
  box-shadow: inset 0 0 0 var(--bw) var(--ink), 6px 6px 0 0 var(--ink);
}
.ck-light { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); }
.ck-light i { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); box-shadow: inset 0 0 0 2px var(--ink); transition: background-color .4s; }
.ck-light.is-saved i { background: var(--mint); }
.ck-state-label { font-size: .82rem; font-weight: 650; color: var(--ink-2); }
.ck-state-value { font-weight: 750; line-height: 1.3; }

/* ---------------------------------------------------- reading progress */
.read-progress { position: fixed; z-index: 56; left: 0; top: 0; width: 100%; height: 5px; pointer-events: none; }
.read-progress-fill { position: absolute; inset: 0; background: var(--cobalt); transform-origin: 0 50%; transform: scaleX(0); }
.read-progress-ball {
  position: absolute; left: 0; top: -4px; width: 13px; height: 13px; margin-left: -6.5px;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(90deg, var(--sun) 50%, var(--coral) 50%);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.menu-open .read-progress { visibility: hidden; }

/* --------------------------------------------------------- body layout */
.lg-body { padding: clamp(4px, 1.5vw, 20px) 0 clamp(80px, 9vw, 140px); }
.lg-grid {
  display: grid; grid-template-columns: minmax(240px, 304px) minmax(0, 1fr);
  gap: clamp(36px, 6.5vw, 112px); align-items: start;
}
.lg-aside { position: sticky; top: var(--toc-top, calc(var(--header-h) + 24px)); z-index: 6; }
.lg-main { min-width: 0; }

/* ----------------------------------------------------------------- toc */
.toc {
  position: relative; padding: 20px 14px 14px;
  border-radius: 22px 22px 22px 46px; background: var(--card);
  box-shadow: inset 0 0 0 var(--bw) var(--ink), 8px 8px 0 0 var(--paper-3);
}
.toc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px; }
.toc-title { font: 800 1rem/1.2 var(--font-display); letter-spacing: -.01em; }
.toc-pct { font: 700 .78rem/1 var(--font-display); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.toc-toggle { display: none; }
.toc-scroll {
  margin-top: 12px; max-height: calc(100vh - var(--toc-top, 108px) - 110px); overflow: auto;
  overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--paper-3) transparent;
}
.toc-inner { position: relative; padding: 2px 4px 2px; }
.toc-list { position: relative; z-index: 1; list-style: none; display: grid; gap: 1px; }
.toc-rail { position: absolute; z-index: 0; left: 21px; top: 20px; bottom: 20px; width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--line); }
.toc-rail i { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform-origin: 50% 0; transform: scaleY(0); }
.toc-marker {
  position: absolute; z-index: 1; left: 8px; top: 0; width: 26px; height: 26px;
  background: var(--cobalt); border-radius: 50%; pointer-events: none; opacity: 0;
}
.toc-link {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 7px 8px 7px 4px; margin-left: 4px; border-radius: 12px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.35;
  transition: color .25s, background-color .25s;
}
.toc-num {
  display: grid; place-items: center; width: 26px; height: 26px; margin-top: -3px;
  border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--paper-3);
  font: 700 .68rem/1 var(--font-display); color: var(--ink); transition: background-color .3s, box-shadow .3s, color .3s;
}
.toc-text { padding-top: 1px; transition: transform .45s var(--ease-spring); }
.toc-link:hover { color: var(--ink); }
.toc-link:hover .toc-text { transform: translateX(4px); }
.toc-link.is-active { color: var(--ink); font-weight: 750; }
.toc-link.is-active .toc-num { background: transparent; box-shadow: none; }
.toc-link.is-active[data-k="0"] .toc-num { color: var(--card); }
.toc-link:focus-visible { outline-offset: 0; }

/* ------------------------------------------------------------- article */
.lg-article { max-width: 68ch; font-size: clamp(1.04rem, .35vw + .96rem, 1.14rem); line-height: 1.72; color: var(--ink); }
.lg-article section { scroll-margin-top: calc(var(--header-h) + 28px); }
.lg-article section + section { margin-top: clamp(34px, 4vw, 56px); padding-top: clamp(34px, 4vw, 56px); box-shadow: inset 0 2px 0 var(--line); }
.lg-article h2 {
  display: flex; align-items: flex-start; gap: .62em; max-width: 30ch; text-wrap: balance;
  font: 800 clamp(1.32rem, 1.1vw + 1rem, 1.85rem)/1.2 var(--font-display); letter-spacing: -.028em;
}
.lg-num {
  flex: none; display: grid; place-items: center; width: 1.85em; height: 1.85em; margin-top: -.18em;
  font-size: .66em; font-weight: 800; letter-spacing: 0; color: var(--ink); background: var(--c, var(--cobalt));
  font-variant-numeric: tabular-nums;
}
.lg-num--0 { --c: var(--cobalt); color: var(--card); border-radius: 50%; }
.lg-num--1 { --c: var(--coral); }
.lg-num--2 { --c: var(--sun); border-top-left-radius: 100%; place-items: end; padding: 0 .38em .26em 0; }
.lg-num--3 { background: transparent; border-radius: 50%; box-shadow: inset 0 0 0 .22em var(--mint); }
.lg-article h3 { margin-top: 1.9em; font: 750 clamp(1.04rem, .4vw + .95rem, 1.2rem)/1.3 var(--font-display); letter-spacing: -.016em; }
.lg-article p, .lg-article ul, .lg-article ol { margin-top: 1em; }
.lg-article h2 + p, .lg-article h2 + ul, .lg-article h2 + ol { margin-top: 1.1em; }
.lg-article h3 + p, .lg-article h3 + ul { margin-top: .55em; }
.lg-article ul, .lg-article ol { list-style: none; padding: 0; display: grid; gap: .6em; }
.lg-article ul > li { position: relative; padding-left: 1.65em; }
.lg-article ul > li::before {
  content: ""; position: absolute; left: .25em; top: .66em; width: .46em; height: .46em;
  border-radius: 50%; background: var(--cobalt);
}
.lg-article ul > li:nth-child(3n+2)::before { border-radius: 0; background: var(--coral); }
.lg-article ul > li:nth-child(3n)::before { left: .17em; width: .62em; height: .31em; top: .76em; border-radius: 999px 999px 0 0; background: var(--sun); }
.lg-article ol { counter-reset: lg; }
.lg-article ol > li { position: relative; padding-left: 2.5em; counter-increment: lg; }
.lg-article ol > li::before {
  content: counter(lg); position: absolute; left: 0; top: .12em; width: 1.7em; height: 1.7em;
  display: grid; place-items: center; border-radius: 7px; background: var(--ink); color: var(--card);
  font: 700 .74em/1 var(--font-display);
}
.lg-article strong { font-weight: 760; }
.lg-article a {
  color: var(--ink); font-weight: 650; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--coral), var(--coral)) 0 100% / 100% 2px no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .35s var(--ease-out);
}
.lg-article a:hover { background-size: 100% 100%; }

/* tables: a device card (card fill, ink outline, flat shadow) */
.lg-article table {
  width: 100%; margin-top: 1.4em; border-collapse: separate; border-spacing: 0;
  font-size: .9em; line-height: 1.5;
  background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 0 0 var(--bw) var(--ink), 8px 8px 0 0 var(--paper-3);
}
.lg-article th {
  padding: 14px 14px 13px; text-align: left; vertical-align: bottom;
  background: var(--ink); color: var(--card); font: 700 .8rem/1.25 var(--font-display); letter-spacing: .01em;
}
.lg-article td { padding: 14px; vertical-align: top; }
.lg-article th:first-child, .lg-article td:first-child { padding-left: 20px; }
.lg-article th:last-child, .lg-article td:last-child { padding-right: 20px; }
.lg-article tbody tr + tr td { box-shadow: inset 0 2px 0 var(--line); }
.lg-article tbody tr:last-child td { padding-bottom: 18px; }
.lg-article td:first-child { font: 700 .92em/1.5 var(--font-code); white-space: nowrap; }
.lg-article td:first-child::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--mint); vertical-align: .1em; }
.lg-article tbody tr:hover td { background: var(--paper); }

/* other documents */
.lg-next { max-width: 68ch; margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(28px, 3vw, 40px); box-shadow: inset 0 var(--bw) 0 var(--ink); }
.lg-next-title { font: 800 1.1rem/1.2 var(--font-display); letter-spacing: -.015em; }
.lg-next-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.lg-doc {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  height: 100%; padding: 16px 12px 16px 16px; border-radius: 20px; text-decoration: none; color: var(--ink);
  background: var(--card); box-shadow: inset 0 0 0 var(--bw) var(--ink), 0 0 0 0 var(--ink);
  transition: box-shadow .45s var(--ease-out), transform .45s var(--ease-spring);
}
.lg-doc:hover, .lg-doc:focus-visible { box-shadow: inset 0 0 0 var(--bw) var(--ink), 7px 7px 0 0 var(--ink); transform: translate(-3px, -3px); }
.lg-doc:hover .btn-knob { transform: rotate(360deg); }
.lg-doc .btn-knob { width: 36px; height: 36px; }
.lg-doc-ico { position: relative; display: block; width: 44px; height: 44px; }
.lg-doc-ico i { position: absolute; display: block; }
.lg-doc--privacy .lg-doc-ico i { left: 8px; top: 3px; width: 28px; height: 38px; border-radius: 3px 3px 999px 999px / 3px 3px 60% 60%; background: var(--cobalt); }
.lg-doc--privacy .lg-doc-ico i::after { content: ""; position: absolute; left: 9px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); }
.lg-doc--cookies .lg-doc-ico i { inset: 2px; border-radius: 50%; background: var(--sun); }
.lg-doc--cookies .lg-doc-ico i::before { content: ""; position: absolute; right: -6px; top: -6px; width: 17px; height: 17px; border-radius: 50%; background: var(--card); }
.lg-doc--cookies .lg-doc-ico i::after { content: ""; position: absolute; left: 11px; top: 14px; width: 7px; height: 7px; background: var(--ink); box-shadow: 10px 9px 0 -1px var(--coral); }
.lg-doc--terms .lg-doc-ico i { left: 7px; top: 2px; width: 30px; height: 40px; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 2.5px var(--ink); }
.lg-doc--terms .lg-doc-ico i::before { content: ""; position: absolute; left: 7px; top: 9px; width: 16px; height: 4px; border-radius: 2px; background: var(--ink); box-shadow: 0 7px 0 0 var(--paper-3), 0 13px 0 0 var(--paper-3); }
.lg-doc--terms .lg-doc-ico i::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: var(--coral); }
.lg-doc-copy { display: grid; gap: 2px; min-width: 0; }
.lg-doc-name { font: 800 .98rem/1.2 var(--font-display); letter-spacing: -.015em; }
.lg-doc-desc { font-size: .88rem; color: var(--ink-2); line-height: 1.35; }

/* -------------------------------------------------- legal: responsive */
@media (max-width: 960px) {
  .lg-intro .page-intro-art, .lg-emblem { justify-self: start; max-width: 340px; }
  .lg-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .lg-aside { top: var(--toc-top, 12px); z-index: 30; }
  .toc { padding: 0; border-radius: 28px; box-shadow: inset 0 0 0 var(--bw) var(--ink), 5px 5px 0 0 var(--ink); }
  .toc-head { display: none; }
  .toc-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; min-height: 56px; padding: 8px 8px 8px 20px; border: 0; border-radius: 28px;
    background: none; color: var(--ink); text-align: left; cursor: pointer;
  }
  .toc-toggle-txt { display: grid; min-width: 0; }
  .toc-toggle-title { font: 800 .74rem/1.2 var(--font-display); color: var(--ink-2); letter-spacing: .01em; }
  .toc-current { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 750; font-size: .98rem; line-height: 1.3; }
  .toc-chev { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); transition: transform .6s var(--ease-spring); }
  .toc-chev i { width: 18px; height: 9px; margin-top: 4px; border-radius: 0 0 999px 999px; background: var(--ink); }
  .toc.is-open .toc-chev { transform: rotate(180deg); }
  /* the list drops down as its own card over the text, so opening it never moves the page */
  .toc-panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    border-radius: 22px; background: var(--card);
    box-shadow: inset 0 0 0 var(--bw) var(--ink), 5px 5px 0 0 var(--ink);
  }
  .js .toc-panel { height: 0; overflow: hidden; visibility: hidden; }
  .toc.is-open .toc-panel { height: auto; visibility: visible; }
  .toc-scroll { margin-top: 0; max-height: min(64vh, 500px); padding: 8px 8px 12px; }
  .toc-inner { padding-top: 2px; }
  .lg-article section { scroll-margin-top: 92px; }
}
@media (max-width: 720px) {
  .lg-next-list { grid-template-columns: minmax(0, 1fr); }
  /* tables become stacked cards; labels come from the header row (pages.js adds data-label) */
  .lg-article table, .lg-article tbody, .lg-article tr, .lg-article td { display: block; width: auto; }
  .lg-article thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lg-article tr { padding: 16px 18px 12px; }
  .lg-article tbody tr + tr { box-shadow: inset 0 2px 0 var(--line); }
  .lg-article tbody tr + tr td, .lg-article tbody tr:last-child td { box-shadow: none; padding-bottom: 6px; }
  .lg-article td, .lg-article td:first-child, .lg-article td:last-child { padding: 0 0 8px; }
  .lg-article td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 1px; font: 700 .72rem/1.3 var(--font-display); color: var(--ink-2); letter-spacing: .01em; }
  .lg-article td:first-child { font-size: 1.05em; padding-bottom: 10px; }
  .lg-article td:first-child::before { font-family: var(--font-display); }
  .lg-article tbody tr:hover td { background: none; }
}
@media (max-width: 600px) {
  .lg-intro .lg-emblem { max-width: 270px; justify-self: center; }
  .lg-intro-grid { gap: 12px; }
  .ck-state { grid-template-columns: auto minmax(0, 1fr); }
  .ck-open { grid-column: 1 / -1; justify-content: space-between; }
  .lg-article h2 { gap: .5em; }
}

/* ============================================================== contact */
.ct-intro-grid { align-items: center; }
.ct-title { max-width: 11ch; }
.ct-intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 34px; }
.ct-intro-mail { font-weight: 600; }
.ct-knob-down { transform: rotate(90deg); }
.btn:hover .ct-knob-down, .btn:focus-visible .ct-knob-down { transform: rotate(450deg); }
.ct-art { max-width: 600px; aspect-ratio: 560 / 460; }
.ct-scene .c-hit { cursor: pointer; }
.ct-scene .c-path { visibility: hidden; }
.ct-scene .c-plane, .ct-scene .c-cursor, .ct-scene .c-ripple { visibility: hidden; }

.ct-sec { padding-top: clamp(16px, 3vw, 40px); padding-bottom: clamp(56px, 7vw, 104px); scroll-margin-top: 0; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.3fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.ct-main { min-width: 0; }

/* the form card is a speech bubble */
.ct-card { position: relative; margin: 0 10px 64px 0; }
.ct-card::before {
  content: ""; position: absolute; inset: 0; transform: translate(10px, 10px);
  border-radius: var(--r-l) var(--r-l) var(--r-l) 0; background: var(--ink);
}
.ct-card-in {
  position: relative; z-index: 1; overflow: hidden;
  padding: clamp(26px, 4vw, 56px);
  border-radius: var(--r-l) var(--r-l) var(--r-l) 0; background: var(--card);
  box-shadow: inset 0 0 0 var(--bw) var(--ink);
}
.ct-tail { position: absolute; z-index: 2; left: 0; top: calc(100% - 2.5px); width: 70px; height: 66px; overflow: visible; }

.ct-form { display: grid; gap: 24px; }
.ct-form[hidden] { display: none; }
.ct-form-head { display: grid; gap: 8px; }
.ct-form-title { font: 800 clamp(1.5rem, 2.4vw, 2.2rem)/1.1 var(--font-display); letter-spacing: -.032em; }
.ct-form-note { color: var(--ink-2); font-size: .95rem; }

.fld-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.fld { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.fld-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 9px; padding: 0; font: 700 .98rem/1.3 var(--font-text); }
.fld-opt { font-weight: 500; font-size: .86rem; color: var(--ink-2); }
.fld-box { position: relative; }
.fld-input {
  display: block; width: 100%; min-height: 58px; margin: 0; padding: 14px 52px 14px 18px;
  border: 0; border-radius: 16px; background: var(--paper); color: var(--ink);
  font: 500 1.04rem/1.4 var(--font-text);
  box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 0 var(--ink);
  transition: box-shadow .35s var(--ease-out), transform .45s var(--ease-spring), background-color .3s;
  -webkit-appearance: none; appearance: none;
}
.fld-input::placeholder { color: var(--ink-2); opacity: .75; }
.fld-input:hover { background: var(--card); }
.fld-input:focus { outline: none; background: var(--card); box-shadow: inset 0 0 0 3px var(--cobalt), 5px 5px 0 0 var(--ink); transform: translate(-2px, -2px); }
.fld.is-invalid .fld-input { background: var(--card); box-shadow: inset 0 0 0 3px var(--coral), 0 0 0 0 var(--ink); }
.fld.is-invalid .fld-input:focus { box-shadow: inset 0 0 0 3px var(--coral), 5px 5px 0 0 var(--ink); }
.fld-area { min-height: 176px; padding-bottom: 36px; resize: vertical; }
.fld-select { padding-right: 64px; cursor: pointer; text-overflow: ellipsis; }
.fld-knob {
  position: absolute; right: 9px; top: 50%; width: 40px; height: 40px; margin-top: -20px;
  display: grid; place-items: center; border-radius: 50%; background: var(--sun); pointer-events: none;
  transition: transform .6s var(--ease-spring);
}
.fld-knob i { width: 18px; height: 9px; margin-top: 4px; border-radius: 0 0 999px 999px; background: var(--ink); }
.fld-box--select:focus-within .fld-knob { transform: rotate(180deg) translate(2px, 2px); }
.fld-ok {
  position: absolute; right: 15px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; background: var(--mint); transform: scale(0); pointer-events: none;
}
.fld-box--area .fld-ok { top: 16px; margin-top: 0; }
.fld-ok i { position: absolute; height: 3px; border-radius: 2px; background: var(--ink); transform-origin: 0 50%; }
.fld-ok i:first-child { left: 7px; top: 12px; width: 6px; transform: rotate(45deg); }
.fld-ok i + i { left: 10.5px; top: 16.2px; width: 10px; transform: rotate(-50deg); }
.fld-count { position: absolute; right: 16px; bottom: 11px; font: 600 .76rem/1 var(--font-text); color: var(--ink-2); pointer-events: none; font-variant-numeric: tabular-nums; }
.fld-err { display: none; align-items: flex-start; gap: 10px; margin-top: 10px; font-weight: 650; font-size: .92rem; line-height: 1.4; color: var(--ink); }
.fld-err.is-on { display: flex; }
.fld-err-ico { flex: none; display: block; width: 10px; height: 10px; margin: .3em 2px 0; background: var(--coral); transform: rotate(45deg); }

/* package tiles */
.pkg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pkg { position: relative; display: block; min-width: 0; cursor: pointer; }
.pkg input { position: absolute; left: 12px; top: 12px; width: 1px; height: 1px; opacity: 0; margin: 0; }
.pkg-in {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center;
  min-height: 86px; height: 100%; padding: 14px 44px 14px 14px; border-radius: 18px;
  background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 0 var(--ink);
  transition: background-color .35s, color .3s, box-shadow .35s var(--ease-out), transform .45s var(--ease-spring);
}
.pkg-ico { grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; }
.pkg-ico i { display: block; transition: background-color .3s, box-shadow .3s; }
.pkg--web .pkg-ico i { width: 40px; height: 20px; margin-top: 12px; border-radius: 999px 999px 0 0; background: var(--cobalt); }
.pkg--shop .pkg-ico i { width: 32px; height: 32px; background: var(--coral); }
.pkg--app .pkg-ico i { width: 36px; height: 36px; border-top-left-radius: 100%; background: var(--sun); }
.pkg--unsure .pkg-ico i { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 8px var(--mint); }
.pkg-name { align-self: end; font: 750 1rem/1.25 var(--font-text); }
.pkg-sub { align-self: start; font-size: .86rem; font-weight: 600; color: var(--ink-2); transition: color .3s; }
.pkg-check { position: absolute; right: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.pkg-check i { position: absolute; inset: 6px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .5s var(--ease-spring); }
.pkg:hover .pkg-in { background: var(--card); transform: translateY(-2px); }
.pkg input:focus-visible + .pkg-in { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.pkg input:checked + .pkg-in { box-shadow: inset 0 0 0 3px var(--ink), 5px 5px 0 0 var(--ink); transform: translate(-2px, -2px); }
.pkg input:checked + .pkg-in .pkg-check i { transform: scale(1); }
.pkg--web input:checked + .pkg-in { background: var(--cobalt); color: var(--card); }
.pkg--web input:checked + .pkg-in .pkg-sub { color: var(--card); }
.pkg--web input:checked + .pkg-in .pkg-ico i { background: var(--sun); }
.pkg--shop input:checked + .pkg-in { background: var(--coral); }
.pkg--shop input:checked + .pkg-in .pkg-ico i { background: var(--card); }
.pkg--app input:checked + .pkg-in { background: var(--sun); }
.pkg--app input:checked + .pkg-in .pkg-ico i { background: var(--ink); }
.pkg--unsure input:checked + .pkg-in { background: var(--mint); }
.pkg--unsure input:checked + .pkg-in .pkg-ico i { box-shadow: inset 0 0 0 8px var(--ink); }
.pkg input:checked + .pkg-in .pkg-sub { color: inherit; }
.fld.is-invalid .pkg-in { box-shadow: inset 0 0 0 3px var(--coral), 0 0 0 0 var(--ink); }

/* consent checkbox */
.chk { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; cursor: pointer; font-size: .98rem; line-height: 1.5; }
.chk input { position: absolute; left: 8px; top: 8px; width: 1px; height: 1px; opacity: 0; margin: 0; }
.chk-box {
  position: relative; display: block; width: 30px; height: 30px; border-radius: 9px;
  background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink);
  transition: background-color .3s, box-shadow .3s, transform .55s var(--ease-spring);
}
.chk-box i { position: absolute; height: 4px; border-radius: 2px; background: var(--ink); transform-origin: 0 50%; transition: transform .25s var(--ease-out); }
.chk-box i:first-child { left: 7px; top: 14px; width: 8px; transform: rotate(45deg) scaleX(0); }
.chk-box i + i { left: 11.5px; top: 19.5px; width: 14px; transform: rotate(-52deg) scaleX(0); transition-delay: 0s; }
.chk:hover .chk-box { transform: rotate(-6deg); }
.chk input:checked + .chk-box { background: var(--coral); transform: rotate(0); }
.chk input:checked + .chk-box i:first-child { transform: rotate(45deg) scaleX(1); }
.chk input:checked + .chk-box i + i { transform: rotate(-52deg) scaleX(1); transition-delay: .18s; }
.chk input:focus-visible + .chk-box { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.fld.is-invalid .chk-box { box-shadow: inset 0 0 0 3px var(--coral); }
.chk-text { padding-top: 2px; }
.fld--consent .fld-err { margin-left: 44px; }

.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.ct-summary { flex-basis: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: 14px; background: var(--paper-2); font-weight: 700; }
.ct-summary[hidden], .ct-fail[hidden], .ct-success[hidden] { display: none; }
.ct-summary .fld-err-ico { margin-top: 0; }
.ct-fail { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; border-radius: 16px; box-shadow: inset 0 0 0 3px var(--coral); font-weight: 600; }
.ct-fail p { flex: 1 1 260px; }
.ct-hint { flex: 1 1 200px; max-width: 34ch; font-size: .9rem; color: var(--ink-2); }
.ct-submit[aria-busy="true"] { cursor: progress; }
.ct-submit[aria-busy="true"] .btn-knob { animation: spin90 1.1s var(--ease-spring) infinite; }

/* success */
.ct-success { display: grid; justify-items: start; gap: 18px; padding: 6px 0 4px; }
.ct-success:focus { outline: none; }
.ct-stamp { display: block; width: 150px; height: 150px; overflow: visible; margin-bottom: 4px; }
.ct-success-title { font: 800 clamp(1.9rem, 3.6vw, 3rem)/1.04 var(--font-display); letter-spacing: -.036em; max-width: 15ch; }
.ct-success-text { max-width: 46ch; font-size: 1.08rem; color: var(--ink-2); }
.ct-success-alt { max-width: 52ch; font-size: .96rem; }
.ct-success-alt[hidden] { display: none; }
.ct-success .btn { margin-top: 6px; }
.ct-linkbtn {
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
  font: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--coral);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.ct-linkbtn:hover { text-decoration-color: var(--cobalt); }
.ct-flight { position: fixed; z-index: 64; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; overflow: visible; }

/* aside */
.ct-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; min-width: 0; }
.ct-aside-title { font: 800 1.12rem/1.2 var(--font-display); letter-spacing: -.02em; }
.ct-mail {
  padding: 24px 24px 22px; border-radius: 22px 56px 22px 22px; background: var(--sun);
  box-shadow: inset 0 0 0 var(--bw) var(--ink), 8px 8px 0 0 var(--ink);
}
.ct-mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 12px; }
.ct-mail-link {
  min-width: 0; font: 800 clamp(1.08rem, 1.5vw, 1.36rem)/1.25 var(--font-display); letter-spacing: -.03em;
  color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 3px no-repeat; transition: background-size .45s var(--ease-out);
}
.ct-mail-link:hover { background-size: 100% 3px; }
.ct-copy {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 6px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--card); cursor: pointer;
  font: 700 .9rem/1 var(--font-text); white-space: nowrap;
}
.ct-copy-ico { position: relative; flex: none; display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--card); overflow: hidden; }
.ct-copy-ico i { position: absolute; display: block; }
.ct-copy-ico .cc-a { left: 8px; top: 8px; width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--ink); }
.ct-copy-ico .cc-b { left: 12px; top: 12px; width: 12px; height: 12px; border-radius: 3px; background: var(--coral); }
.ct-copy-ico .cc-ok { inset: 0; border-radius: 50%; background: var(--mint); transform: scale(0); }
.ct-copy-ico .cc-ok::before, .ct-copy-ico .cc-ok::after { content: ""; position: absolute; height: 3px; border-radius: 2px; background: var(--ink); transform-origin: 0 50%; }
.ct-copy-ico .cc-ok::before { left: 9px; top: 15px; width: 6px; transform: rotate(45deg); }
.ct-copy-ico .cc-ok::after { left: 12.5px; top: 19.2px; width: 11px; transform: rotate(-50deg); }
.ct-copy:hover .cc-b { transform: translate(-3px, -3px); }
.ct-copy .cc-b { transition: transform .45s var(--ease-spring); }
.ct-company { display: grid; gap: 1px; margin-top: 18px; padding-top: 14px; box-shadow: inset 0 2px 0 var(--line); font-style: normal; font-size: .95rem; line-height: 1.5; }
.ct-company-name { font-weight: 800; }

.ct-time {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 18px;
  padding: 18px 20px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 var(--bw) var(--ink);
}
.ct-clock { display: block; width: 84px; height: 84px; overflow: visible; }
.ct-time-label { font-weight: 700; font-size: .92rem; }
.ct-time-now { margin-top: 2px; font: 800 2.15rem/1.05 var(--font-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.ct-colon { display: inline-block; margin: 0 .04em; animation: ct-tick 1s steps(1) infinite; }
@keyframes ct-tick { 50% { opacity: .22; } }
.ct-time-meta { margin-top: 3px; font-size: .88rem; color: var(--ink-2); }
.ct-time-meta::first-letter { text-transform: uppercase; }

.ct-next { padding: 22px 22px 20px; border-radius: 22px; box-shadow: inset 0 0 0 var(--bw) var(--ink); }
.ct-steps { position: relative; list-style: none; display: grid; gap: 18px; margin-top: 18px; }
.ct-steps::before { content: ""; position: absolute; left: 16px; top: 18px; bottom: var(--end, 40px); width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--line); }
.ct-steps::after { content: ""; position: absolute; left: 16px; top: 18px; bottom: var(--end, 40px); width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--cobalt); transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); }
.ct-step { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
.ct-tok { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2.5px var(--ink); }
.ct-tok i { display: block; }
.ct-tok--1 i { width: 14px; height: 14px; border-radius: 50%; background: var(--cobalt); }
.ct-tok--2 i { width: 13px; height: 13px; background: var(--coral); }
.ct-tok--3 i { width: 16px; height: 8px; margin-top: 4px; border-radius: 999px 999px 0 0; background: var(--sun); }
.ct-step h3 { margin-top: 5px; font: 750 1rem/1.3 var(--font-display); letter-spacing: -.016em; }
.ct-step p { margin-top: 4px; font-size: .93rem; line-height: 1.5; color: var(--ink-2); }

/* -------------------------------------------------- contact: responsive */
@media (max-width: 1100px) {
  .ct-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
}
@media (max-width: 960px) {
  .ct-art { justify-self: center; max-width: 540px; }
  .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-mail { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .fld-row { grid-template-columns: minmax(0, 1fr); }
  .ct-aside { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ct-card { margin-right: 6px; }
  .ct-card::before { transform: translate(6px, 6px); }
  .ct-card-in { padding: 26px 18px 24px; }
  .pkg-grid { grid-template-columns: minmax(0, 1fr); }
  .pkg-in { min-height: 74px; }
  .ct-actions .ct-submit { width: 100%; justify-content: space-between; }
  .ct-intro-actions .btn { flex: 1 1 auto; justify-content: space-between; }
  .ct-time { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; }
  .ct-clock { width: 70px; height: 70px; }
  .ct-stamp { width: 120px; height: 120px; }
}
