/* The middle of the home page. Colours only from the tokens in style.css (three per theme, 28.11.2026). */

/* F: spacing. The try-it copy sits in the middle of its phone, the promises run straight into the film */
.desk .desk-copy { align-self: center; }
.promises { padding-block: clamp(56px, 8vw, 104px) clamp(24px, 4vw, 48px); }

/* A: promises. Each answers a fear, struck through once with the same red pen as the film */
.p-kick { font-family: var(--hand); color: var(--ink); font-size: 1.6rem; margin: 0 0 28px; transform: rotate(-2deg); transform-origin: left; }
.promises li { display: grid; gap: 10px; align-content: start; }
.fear { position: relative; justify-self: start; font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--t) 10%, var(--p)); padding: 6px 12px 7px; border-radius: 3px; transform: rotate(-1.5deg); box-shadow: 0 10px 20px -14px var(--shadow); }
.promises li:nth-child(2) .fear { transform: rotate(1.2deg); }
.fear svg { position: absolute; left: -4%; top: 30%; width: 108%; height: 50%; overflow: visible; }
.fear .strike { fill: none; stroke: var(--pen); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 230; stroke-dashoffset: 0; }
.js-pen .fear .strike { stroke-dashoffset: 230; transition: stroke-dashoffset .7s cubic-bezier(.6,.1,.3,1); }
.js-pen .fear.on .strike { stroke-dashoffset: 0; }
.promises li:nth-child(2) .fear .strike { transition-delay: .15s; }
.promises li:nth-child(3) .fear .strike { transition-delay: .3s; }

/* B: prices as three pillars of light; the table stays a table */
:is(#hinnat, #pricing) .tiers { border-collapse: separate; border-spacing: 0; }
:is(#hinnat, #pricing) .tiers thead th, :is(#hinnat, #pricing) .tiers thead td { border-bottom: 0; }
:is(#hinnat, #pricing) .t-price { font-size: clamp(3rem, 7vw, 5.6rem); letter-spacing: var(--tr-4); }
:is(#hinnat, #pricing) .t-price small { font-size: .22em; }
:is(#hinnat, #pricing) .tiers .pick { background: none; }
:is(#hinnat, #pricing) .tiers tbody th { border-bottom-color: var(--line); }
:is(#hinnat, #pricing) .tiers tbody td { border-bottom: 0; font-weight: 600; position: relative; }
:is(#hinnat, #pricing) .tiers td.y { background: color-mix(in srgb, var(--t) 6%, transparent); }
:is(#hinnat, #pricing) .tiers td.y::before { content: ""; display: inline-block; width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--ink);
  transform: none; margin-right: 10px; vertical-align: 1px; }
:is(#hinnat, #pricing) .tiers td.n::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--t) 40%, transparent); margin-right: 10px; vertical-align: 1px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qa { margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--rule); }
.qa > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.qa dt { font-weight: 700; font-size: var(--step-1); }
.qa dd { margin: 0; color: var(--graphite); }
.tier-tabs { display: none; }
@media (max-width: 760px) {
  .qa { grid-template-columns: 1fr; }
  .qa > div { grid-template-columns: 1fr; gap: 4px; }
  /* phone: the three prices become tabs, one column shown */
  .tier-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
  .tier-tabs button { font: inherit; text-align: left; padding: 12px 12px 10px; border-radius: 12px; border: 1px solid var(--rule); background: transparent; color: var(--graphite); cursor: pointer; }
  .tier-tabs button b { display: block; font-size: 1.7rem; letter-spacing: var(--tr-4); color: var(--ink); line-height: 1.05; }
  .tier-tabs button[aria-selected="true"] { border-color: var(--ink); background: color-mix(in srgb, var(--t) 8%, transparent); }
  .tier-tabs button span { font-size: .85rem; }
  :is(#hinnat, #pricing) .has-tabs thead { display: none; }
  :is(#hinnat, #pricing) .has-tabs tbody tr { grid-template-columns: 1fr auto; align-items: center; padding: 12px 0; }
  :is(#hinnat, #pricing) .has-tabs tbody th { grid-column: 1; padding: 0; font-weight: 500; }
  :is(#hinnat, #pricing) .has-tabs tbody td { display: none; background: none; padding: 0; font-size: .9rem; text-align: right; }
  :is(#hinnat, #pricing) .has-tabs[data-col="1"] tbody td:nth-of-type(1), :is(#hinnat, #pricing) .has-tabs[data-col="2"] tbody td:nth-of-type(2), :is(#hinnat, #pricing) .has-tabs[data-col="3"] tbody td:nth-of-type(3) { display: block; }
  :is(#hinnat, #pricing) .has-tabs tbody tr:has(td.n:not([style*="none"])) th { opacity: 1; }
}

/* C: the three days as a message thread in the hero's phone */
.days .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 24px clamp(32px, 6vw, 96px); align-items: center; }
.days .head { grid-column: 1; }
.days .timeline { grid-column: 1; grid-template-columns: 1fr; border-top: 0; gap: 22px; }
.days .timeline li { padding: 0 0 0 26px; }
.days .timeline li::before { top: 7px; left: 0; }
.chat { grid-column: 2; grid-row: 1 / span 2; margin: 0; justify-self: center; width: min(100%, 330px); }
.chat-in { border-radius: 34px; padding: 22px 16px; background: var(--sheet); box-shadow: 0 0 0 1.5px var(--line) inset, 0 40px 70px -30px var(--shadow);
  display: grid; gap: 8px; transform: rotate(2deg); }
.chat .day { justify-self: center; font-size: .75rem; color: var(--graphite); margin: 6px 0 0; }
.chat .msg { margin: 0; padding: 9px 12px; border-radius: 16px; font-size: .9rem; line-height: 1.35; max-width: 86%; }
.chat .msg small { display: block; font-size: .72rem; opacity: .85; margin-top: 3px; }
.chat .in { background: color-mix(in srgb, var(--t) 10%, var(--p)); color: var(--ink); justify-self: start; border-bottom-left-radius: 4px; }
.chat .out { background: var(--ink); color: var(--paper); justify-self: end; border-bottom-right-radius: 4px; }
.chat .done::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--open); margin-right: 7px; }
.chat figcaption { text-align: center; font-size: .8rem; color: var(--graphite); margin-top: 14px; }
.js-chat .chat .msg { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.js-chat .chat.on .msg { opacity: 1; transform: none; }
.js-chat .chat.on .msg:nth-of-type(3) { transition-delay: .25s; } .js-chat .chat.on .msg:nth-of-type(5) { transition-delay: .5s; }
.js-chat .chat.on .msg:nth-of-type(6) { transition-delay: .7s; } .js-chat .chat.on .msg:nth-of-type(8) { transition-delay: .95s; }
@media (max-width: 860px) {
  .days .wrap { grid-template-columns: 1fr; }
  .days .timeline { display: none; }
  .chat { grid-column: 1; grid-row: auto; width: 100%; }
  .chat-in { transform: none; border-radius: 0; background: none; box-shadow: none; padding: 0; }
}

/* D: FAQ. A big "Entä jos?" and the call button fill the side; the open item gets the green open-signal */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: 24px; display: grid; gap: 14px; justify-items: start; }
.faq-word { margin: 0; font-weight: 800; letter-spacing: var(--tr-4); line-height: .85; font-size: clamp(3.4rem, 8vw, 6.6rem); color: var(--ink); }
.faq-side p:not(.faq-word) { margin: 0; color: var(--graphite); }
.faq-grid .faq { margin-top: 0; max-width: none; }
.faq-grid details { border-bottom: 1px solid var(--rule); }
.faq-grid summary { list-style: none; cursor: pointer; font-size: var(--step-1); font-weight: 600; padding: 18px 0 18px 30px; position: relative; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 2px solid var(--graphite); transition: background .2s, border-color .2s, box-shadow .2s; }
.faq-grid details[open] summary::before { background: var(--ink); border-color: var(--ink); }
.faq-grid summary::after { display: none; }
.faq-grid details p { padding: 0 0 18px 30px; margin: 0; color: var(--graphite); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-side { position: static; } .faq-word { font-size: 3rem; } }

/* E: contact, back on the street. Solid night form, the rest folded away */
.contact.street { position: relative; isolation: isolate; overflow: hidden; background: var(--lo); }
.street-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -2; filter: saturate(.75) brightness(.38); }
.contact.street::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--lo) 92%, transparent), color-mix(in srgb, var(--lo) 55%, transparent) 60%, color-mix(in srgb, var(--lo) 75%, transparent)); }
.contact.street h2 { color: var(--hi); }
.contact.street .lines a { color: var(--hi); border-bottom-color: color-mix(in srgb, var(--hi) 60%, transparent); }
.contact.street .lines a:hover { border-bottom-color: var(--hi); }
.contact.street .lines a.call-num { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.contact.street .small { color: color-mix(in srgb, var(--hi) 84%, var(--lo)); }
.contact.street .cform { background: var(--sheet); border-color: var(--line); }
.cf-more { border-top: 1px solid var(--rule); padding-top: 10px; }
.cf-more summary { cursor: pointer; font-weight: 600; color: var(--graphite); padding: 6px 0; }
.cf-more summary { position: relative; padding-right: 32px; }
.cf-more summary::after { top: 50%; transform: translateY(-50%); line-height: 1; }
.cf-more[open] { display: grid; gap: 14px; }

@media (prefers-reduced-motion: reduce) {
  .js-pen .fear .strike { stroke-dashoffset: 0; transition: none; }
  .js-chat .chat .msg { opacity: 1; transform: none; transition: none; }
}
:is(#hinnat, #pricing) .t-price { font-size: clamp(2.8rem, 5.4vw, 4.6rem); white-space: nowrap; }
.days .head { display: block; }
.days .head h2 { max-width: 16ch; }
.days .head p { margin-top: 12px; }

/* J355: the recommended plan stands out by surface, not colour, top to bottom; every column ends in a request */
:is(#hinnat, #pricing) .tiers .pick { background: color-mix(in srgb, var(--t) 8%, transparent); }
:is(#hinnat, #pricing) .tiers thead th.pick { border-radius: 14px 14px 0 0; padding-top: 16px; }
:is(#hinnat, #pricing) .tiers tfoot td.pick { border-radius: 0 0 14px 14px; }
:is(#hinnat, #pricing) .tiers td.y.pick { background: color-mix(in srgb, var(--t) 12%, transparent); }
.t-rec { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
:is(#hinnat, #pricing) .tiers tfoot td { padding: 20px 12px 22px; vertical-align: top; border: 0; }
:is(#hinnat, #pricing) .tiers tfoot .btn { width: 100%; min-height: 52px; padding-inline: 16px; font-size: .95rem; line-height: 1.2; text-align: center; }
:is(#hinnat, #pricing) .tiers tfoot .btn.go { padding: 6px 6px 6px 18px; justify-content: space-between; text-align: left; }
@media (max-width: 760px) {
  :is(#hinnat, #pricing) .tiers tfoot, :is(#hinnat, #pricing) .tiers tfoot tr { display: block; }
  :is(#hinnat, #pricing) .tiers tfoot td { display: none; padding: 16px 0 0; background: none; }
  :is(#hinnat, #pricing) .has-tabs[data-col="1"] tfoot td:nth-of-type(2), :is(#hinnat, #pricing) .has-tabs[data-col="2"] tfoot td:nth-of-type(3), :is(#hinnat, #pricing) .has-tabs[data-col="3"] tfoot td:nth-of-type(4) { display: block; }
  :is(#hinnat, #pricing) .tiers:not(.has-tabs) tfoot td:not(:first-child) { display: block; }
  .tier-tabs button { min-height: 44px; }
  :is(#hinnat, #pricing) .tiers .pick, :is(#hinnat, #pricing) .tiers td.y.pick, :is(#hinnat, #pricing) .tiers tfoot td.pick { background: none; }
}
@media (min-width: 1200px) {
  :is(#hinnat, #pricing) .tiers tfoot td { padding-inline: 6px; }
  :is(#hinnat, #pricing) .tiers tfoot .btn.go { gap: 8px; padding-left: 14px; white-space: nowrap; }
  :is(#hinnat, #pricing) .tiers tfoot .btn.go .piste { width: 34px; height: 34px; }
}
/* J355: the call button on the street photo keeps the button's own text colour (was --hi on the accent: 2-3:1) */
.contact.street .lines a.call-btn, .contact.street .lines a.call-btn:hover { color: var(--on-k); }
