@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 800; src: url("fonts/figtree-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: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 800; src: url("fonts/figtree-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; }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 300 800; src: url("fonts/sora-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: "Sora"; font-style: normal; font-display: swap; font-weight: 300 800; src: url("fonts/sora-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; }
/* Attune Robot -sivusto. Värit ja rytmi samasta perheestä kuin ATTUNE iLO -esite: lämmin hiekka, viileä sumu
   ja tumma yö vaihtelevat osioittain, punainen on ainoa korostusväri. Fontit ovat järjestelmäfontteja. */

:root {
  color-scheme: light dark;
  --ink: #16191d;
  --ink-2: #454c54;
  --muted: #5c636c;
  --line: #d9d5cd;
  --paper: #ffffff;
  --sand: #f4f0e9;
  --mist: #edf0f3;
  --night: #2d3540;
  --deep: #1a1f26;
  --night-2: #3a434f;
  --on-night: #f4f0e9;
  --on-night-2: #c9ced5;
  --red: #d21242;
  --red-dark: #a80e35;
  --red-soft: #fbe6eb;
  --brand-red: #ce0538;
  --night-accent: #ff7590;
  --night-link: #ffb3c2;

  --ill-line: #16191d;
  --ill-floor: #ffffff;
  --ill-grid: #e4dfd6;
  --ill-top: #ffffff;
  --ill-left: #ece8e1;
  --ill-right: #d9d4cb;
  --ill-wall-top: #f3f5f7;
  --ill-wall-left: #dfe3e7;
  --ill-wall-right: #c8ced5;
  --ill-metal-top: #c9ced4;
  --ill-metal-left: #9ba3ac;
  --ill-metal-right: #7f8892;
  --ill-dark-top: #4a5461;
  --ill-dark-left: #2d3540;
  --ill-dark-right: #20262e;
  --ill-wood-top: #eadfcb;
  --ill-wood-left: #d7c6a8;
  --ill-wood-right: #c0ab87;
  --ill-door: #b9c0c8;
  --ill-wet: #dfe9f2;

  --font: "Figtree", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Sora", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --radius: 10px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sand: #262c34;
    --mist: #2d3540;
    --night: #1f252c;
    --deep: #12161b;
    --night-2: #333c48;
    --paper: #333c48;
    --line: #48525f;
    --brand-red: #f0184f;
    --ill-line: #e9ecef;
    --ill-floor: #3a434f;
    --ill-grid: #4a5461;
    --ill-top: #5a6573;
    --ill-left: #4a5461;
    --ill-right: #3d4652;
    --ill-wall-top: #56606d;
    --ill-wall-left: #48525f;
    --ill-wall-right: #3b444f;
    --ill-door: #6b7682;
    --ill-wet: #3f5163;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; background: var(--sand); color: var(--ink); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--red); color: #fff; border-radius: 6px; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.bg-sand, .bg-mist { --fg: var(--ink); --fg-2: var(--ink-2); --accent: var(--red); --link: var(--red-dark); --card: var(--paper); --rule: var(--line); }
.bg-sand { --bg: var(--sand); }
.bg-mist { --bg: var(--mist); }
.bg-night { --bg: var(--night); --fg: var(--on-night); --fg-2: var(--on-night-2); --accent: var(--night-accent); --link: var(--night-link); --card: var(--night-2); --rule: #4a5461; }
@media (prefers-color-scheme: dark) {
  .bg-sand, .bg-mist { --fg: var(--on-night); --fg-2: var(--on-night-2); --accent: var(--night-accent); --link: var(--night-link); --rule: var(--line); }
}
.bg-sand, .bg-mist, .bg-night { background: var(--bg); color: var(--fg); }
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 104px 0; } }

.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.lead { color: var(--fg-2); font-size: 18px; max-width: 62ch; }
.section-head { display: grid; gap: 20px; margin-bottom: 44px; }
@media (min-width: 960px) { .section-head { grid-template-columns: 5fr 7fr; align-items: start; gap: 48px; } .section-head .lead { padding-top: 10px; } }

/* Yläpalkki */
/* Yläpalkki pysyy näkyvissä vieritettäessä; ankkurilinkin kohde jää palkin alapuolelle. */
.topbar { position: sticky; top: 0; z-index: 20; padding: 14px 0; border-bottom: 1px solid var(--rule); }
html { scroll-padding-top: 59px; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--fg); text-decoration: none; margin-right: auto; }
.brand .logo-finnid { height: 22px; width: auto; }
/* Tuotelogo on yläpalkissa vain telakoituneena: iso logo liukuu siihen vieritettäessä (ks. logo-dock). */
.brand .logo-attune { display: none; height: 17px; width: auto; }
.brand-red { fill: var(--brand-red); }
.mainnav { display: none; }
.mainnav ul, .langs ul { display: flex; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.mainnav a { color: var(--fg); text-decoration: none; font-size: 15px; font-weight: 600; }
.mainnav a:hover { color: var(--accent); }
@media (min-width: 1080px) { .mainnav { display: block; } }
.langs ul { gap: 2px; }
.langs a { display: inline-block; min-width: 40px; padding: 6px 8px; text-align: center; color: var(--fg-2); text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 6px; }
.langs a[aria-current="page"] { color: var(--fg); background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.langs a:hover { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; font-weight: 650; font-size: 16px; text-decoration: none; border: 2px solid transparent; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: currentColor; color: var(--fg); }
.btn--ghost:hover { color: var(--accent); }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: 15px; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 104px; } .hero .wrap { grid-template-columns: 5fr 6fr; gap: 32px; } }
.hero-title { margin-bottom: 26px; }
.hero-title .logo-attune { display: block; height: clamp(44px, 7.5vw, 76px); width: auto; color: var(--fg); }
.hero-tagline { font-family: var(--font-display); font-size: clamp(21px, 2.6vw, 27px); font-weight: 650; line-height: 1.3; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art svg { display: block; width: 100%; height: auto; }
/* Leveällä näytöllä kuvitus on tekstipalstaa suurempi ja ulottuu seuraavan osion päälle. Selaimissa, jotka tukevat
   vieritykseen sidottua animaatiota, se liukuu vierittäessä hieman alaspäin; muissa se pysyy paikallaan. */
@media (min-width: 960px) {
  .hero { overflow: visible; position: relative; padding-bottom: 120px; }
  /* Kerrokset: osioiden liukuvat taustat alimpana, kuvitus niiden päällä, osioiden sisältö ylimpänä ja alapalkki
     kaiken päällä paikallaan. */
  .hero > .wrap, .section > .wrap { position: relative; z-index: 2; }
  .footer { position: relative; z-index: 3; }
  .hero-art { margin: -32px -7% -190px -4%; }
}
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    /* Osion taustaväri on oma kaistansa, joka nousee vieritettäessä sisältöä hitaammin: osion tullessa näkyviin kaista on
       80 px sisältöä edellä, ja ero pienenee tasaisesti nollaan siihen mennessä, kun osion yläreuna on yläpalkin alla.
       Kohdalleen vieritetyssä osiossa sisältö on siis keskellä väriä. Viimeisen osion kaista jatkuu alapalkin alle. */
    .hero, .section { position: relative; background: transparent; }
    /* Seuraavan osion kaista on kohdalleen vieritetyn osion alareunassa jo noin 45 px edellä, joten alareunaan varataan
       saman verran lisätilaa: sisältö näyttää silloin olevan keskellä väriä. */
    .section { padding-bottom: 150px; }
    main > .section:last-child { padding-bottom: 104px; }
    .hero::before, .section::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--bg); animation: bg-drift linear both; animation-timeline: view(59px 0px); animation-range: entry-crossing 0% exit-crossing 0%; }
    .hero::before { top: -100px; }
    main > .section:last-child::before { bottom: -100px; }
    @keyframes bg-drift { from { translate: 0 -80px; } to { translate: 0 0; } }
    /* Iso tuotelogo pienenee ja liukuu vieritettäessä kohti yläpalkkia ja häipyy, ja samalla yläpalkin pieni logo
       ilmestyy samaan kohtaan. Takaisin ylös vieritettäessä liike kulkee toisin päin. */
    .brand .logo-attune { display: block; animation: logo-arrive linear both; animation-timeline: scroll(root); animation-range: 110px 170px; }
    @keyframes logo-arrive { from { opacity: 0; } to { opacity: 1; } }
    .hero-title .logo-attune { transform-origin: left center; animation: logo-dock linear both; animation-timeline: scroll(root); animation-range: 0 170px; }
    @keyframes logo-dock { 65% { opacity: 1; } to { transform: translate(102px, -16px) scale(0.224); opacity: 0; } }
    .hero-art { animation: hero-drift linear both; animation-timeline: scroll(root); animation-range: 0 720px; }
    @keyframes hero-drift { to { translate: 0 80px; } }
  }
}
/* Varalogo: kun telakointi ei ole käytössä (ei tukea, kapea näyttö tai vähennetty liike), pieni logo ilmestyy yläpalkkiin,
   kun iso logo on vierinyt pois näkyvistä (logo.js merkitsee yläpalkin); vähennetyllä liikkeellä ilman animaatiota. */
@supports not (animation-timeline: scroll()) {
  .topbar[data-docked] .brand .logo-attune { display: block; }
  @media (prefers-reduced-motion: no-preference) { .topbar[data-docked] .brand .logo-attune { animation: logo-fade 0.25s ease-out; } }
}
@media (max-width: 959.98px), (prefers-reduced-motion: reduce) {
  .topbar[data-docked] .brand .logo-attune { display: block; }
}
@media (max-width: 959.98px) and (prefers-reduced-motion: no-preference) {
  .topbar[data-docked] .brand .logo-attune { animation: logo-fade 0.25s ease-out; }
}
@keyframes logo-fade { from { opacity: 0; } to { opacity: 1; } }

/* Kortit */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); list-style: none; margin: 0; padding: 0; }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--fg-2); }
.card--mark::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 20px; }

/* Miten se toimii */
.how-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .how-grid { grid-template-columns: 6fr 5fr; gap: 64px; align-items: start; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 26px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 4px 18px; }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; }
.steps p { color: var(--fg-2); }
.flow { margin: 0; display: grid; text-align: center; font-size: 15px; }
.flow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flow-split { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.flow-col { display: grid; align-content: start; }
.flow-box { background: var(--card); border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 12px 10px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.flow-box strong { font-weight: 650; }
.flow-box span { color: var(--fg-2); font-size: 13.5px; }
.flow-box--attune { border: 2.5px solid var(--red); padding: 16px 12px; }
.flow-box--attune .logo-attune { height: 22px; width: auto; justify-self: center; margin-bottom: 6px; color: var(--fg); }
.flow-link { height: 40px; position: relative; }
.flow-link::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; border-left: 2.5px dotted var(--accent); }
.flow-pair { display: grid; grid-template-columns: 1fr 1fr; }
.flow-link--note { height: 60px; }
.flow-note { position: absolute; left: calc(50% + 10px); right: 0; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--fg-2); text-align: left; line-height: 1.25; }

/* Robotit */
.robot-card { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 12px; }
.robot-art { background: var(--sand); border-radius: 8px; padding: 12px; display: grid; place-items: center; height: 168px; }
.robot-art svg { height: 140px; width: auto; }
.robot-card h3 { margin: 6px 0 0; }
.robot-attune { font-size: 15px; color: var(--fg-2); border-top: 1px solid var(--rule); padding-top: 12px; }
.robot-attune b { color: var(--fg); }
.section-foot { margin-top: 28px; }

/* Integraatiot */
.notes { margin-top: 32px; display: grid; gap: 8px; color: var(--fg-2); }

/* Käyttöönotto */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.timeline li { counter-increment: step; position: relative; }
.timeline li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; margin-bottom: 16px; position: relative; z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 19px; left: 52px; right: -16px; border-top: 2.5px dotted var(--accent); }
.timeline li:last-child::after { display: none; }
@media (max-width: 1079px) { .timeline li::after { display: none; } }
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--fg-2); }
.status { margin-top: 40px; padding: 20px 24px; background: var(--card); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; max-width: 820px; }
.status h3 { font-size: 16px; margin-bottom: 4px; }
.status p { color: var(--fg-2); }

/* Yhteystiedot */
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.contact-card { background: var(--card); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.contact-card h3 { margin-bottom: 4px; }
.contact-card dl { margin: 0; display: grid; gap: 8px; }
.contact-card dt { font-size: 14px; color: var(--fg-2); }
.contact-card dd { margin: 0 0 6px; font-weight: 600; overflow-wrap: anywhere; }
.contact-card address { font-style: normal; color: var(--fg-2); }
.contact-card .btn { justify-self: start; margin-top: 8px; }

/* Alatunniste */
.footer { padding: 32px 0; font-size: 15px; color: var(--fg-2); background: var(--deep); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.footer .logo-finnid { height: 20px; width: auto; color: var(--fg); }
.footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer .rights { margin-right: auto; }

/* Kuvitus */
.ill path, .ill ellipse { stroke: var(--ill-line); stroke-width: 1.1; stroke-linejoin: round; }
.ill .i-floor { fill: var(--ill-floor); }
.ill .i-grid { fill: none; stroke: var(--ill-grid); stroke-width: 1; }
.ill .i-top, .ill .i-top-box { fill: var(--ill-top); }
.ill .i-left, .ill .i-left-box { fill: var(--ill-left); }
.ill .i-right, .ill .i-right-box { fill: var(--ill-right); }
.ill .i-top-wall { fill: var(--ill-wall-top); }
.ill .i-left-wall { fill: var(--ill-wall-left); }
.ill .i-right-wall { fill: var(--ill-wall-right); }
.ill .i-top-metal { fill: var(--ill-metal-top); }
.ill .i-left-metal { fill: var(--ill-metal-left); }
.ill .i-right-metal { fill: var(--ill-metal-right); }
.ill .i-top-dark { fill: var(--ill-dark-top); }
.ill .i-left-dark { fill: var(--ill-dark-left); }
.ill .i-right-dark { fill: var(--ill-dark-right); }
.ill .i-top-wood { fill: var(--ill-wood-top); }
.ill .i-left-wood { fill: var(--ill-wood-left); }
.ill .i-right-wood { fill: var(--ill-wood-right); }
.ill .i-top-red { fill: #e8325f; }
.ill .i-left-red { fill: #d21242; }
.ill .i-right-red { fill: #a80e35; }
.ill .i-door { fill: var(--ill-door); }
.ill .i-door-split { fill: none; }
.ill .i-led { fill: none; stroke: #ff3d6e; stroke-width: 2.4; stroke-linecap: round; }
.ill .i-ring { fill: none; stroke: #d21242; stroke-width: 2.4; }
.ill .i-wet { fill: var(--ill-wet); stroke: none; }
.ill .i-route { fill: none; stroke: #d21242; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0.5 7; }
@media (prefers-reduced-motion: no-preference) {
  .ill .i-route { animation: route 2.4s linear infinite; }
}
@keyframes route { to { stroke-dashoffset: -15; } }
