/* sadultool.ee – 90° või 135° */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(../fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2-variations");
  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: "Schibsted Grotesk";
  font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(../fonts/literata-latin-wght-normal.woff2) format("woff2-variations");
  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: "Literata";
  font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(../fonts/literata-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  font-style: italic; font-display: swap; font-weight: 200 900;
  src: url(../fonts/literata-latin-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  --kriit: #f1f3f4;      /* page background, cool chalk */
  --valge: #ffffff;      /* product surfaces */
  --tint: #1b2127;       /* text and dark band */
  --tint-2: #59626b;     /* secondary text */
  --hea: #1f7a4c;        /* 135°, actions */
  --hea-tume: #175d3a;
  --hea-hele: #e2efe7;
  --vale: #c2413b;       /* 90°, used only in diagrams */
  --joon: #d4d9dd;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --mõõt: 64ch;
  --laius: 76rem;
  --serv: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--kriit); color: var(--tint);
  font-family: var(--serif); font-size: 1.0625rem; line-height: 1.7;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hea); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--hea-tume); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--hea); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--sans); font-weight: 750; line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 0.5em; text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 8vw, 5.75rem); font-weight: 850; letter-spacing: -0.045em; line-height: 0.95; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; margin-top: 1.7em; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; margin-top: 1.4em; }
p, ul, ol, dl { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
li::marker { color: var(--hea); font-family: var(--sans); font-weight: 700; }
strong { font-weight: 650; }

.skip { position: absolute; left: -999px; top: 0; background: var(--tint); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { max-width: var(--laius); margin: 0 auto; padding: 0 var(--serv); }

/* Header */
.site-head { background: var(--kriit); border-bottom: 1px solid var(--joon); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.wordmark { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--tint); font-family: var(--sans); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; line-height: 1; }
.wordmark:hover { color: var(--tint); }
.wordmark small { display: block; font-weight: 500; font-size: 0.78rem; letter-spacing: 0; color: var(--tint-2); margin-top: 0.2rem; }
.nav { margin-left: auto; font-family: var(--sans); font-size: 0.98rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; align-items: center; }
.nav li { margin: 0; }
.nav a { color: var(--tint); text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--joon); }
.nav a[aria-current="page"] { border-bottom-color: var(--hea); }
.menu-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 650; font-size: 1rem; line-height: 1;
  padding: 0.95rem 1.35rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-main { background: var(--hea); color: #fff; }
.btn-main:hover { background: var(--hea-tume); color: #fff; }
.btn-line { border-color: var(--tint); color: var(--tint); background: transparent; }
.btn-line:hover { background: var(--tint); color: #fff; }
.nav .btn { padding: 0.7rem 1.1rem; color: #fff; border-bottom: 0; }
.nav .btn:hover { color: #fff; }

@media (max-width: 62rem) {
  .nav { position: relative; }
  .js .menu-toggle {
    display: flex; align-items: center; cursor: pointer; font: 650 1rem var(--sans); color: var(--tint);
    padding: 0.6rem 1rem; border: 1px solid var(--joon); border-radius: 999px; background: var(--valge);
  }
  html:not(.js) .site-head .wrap { flex-wrap: wrap; padding-bottom: 0.8rem; }
  html:not(.js) .nav { margin-left: 0; width: 100%; }
  html:not(.js) .nav ul { flex-wrap: wrap; gap: 0.4rem 1.2rem; }
  .js .nav ul {
    position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 5; flex-direction: column; align-items: stretch;
    gap: 0; min-width: 16rem; background: var(--valge); border: 1px solid var(--joon); border-radius: 12px; padding: 0.4rem;
    box-shadow: 0 14px 34px rgba(27, 33, 39, 0.14);
  }
  .js .nav ul a { display: block; padding: 0.7rem 0.8rem; border-bottom: 0; border-radius: 8px; }
  .js .nav ul a[aria-current="page"] { background: var(--kriit); }
  .js .nav li:last-child { padding: 0.4rem; }
  .js .nav .btn { display: flex; border-radius: 999px; }
  .js .nav:not(.open) ul { display: none; }
}

/* Home hero: the 135° numeral sits behind the chair */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--tint-2); max-width: 36ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.stage {
  position: relative; margin: 0; background: var(--valge); border-radius: 20px; aspect-ratio: 1 / 1; overflow: hidden;
  container-type: inline-size;
}
.stage .deg {
  position: absolute; left: 0; right: 0; bottom: -0.07em; text-align: center; font-family: var(--sans); font-weight: 900;
  font-size: 38cqw; letter-spacing: -0.06em; line-height: 0.8; color: var(--hea-hele);
  font-variant-numeric: tabular-nums; user-select: none;
}
.stage img { position: absolute; left: 50%; top: 6%; transform: translateX(-50%); width: auto; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.stage figcaption { position: absolute; left: 1.1rem; top: 1rem; font-family: var(--sans); font-size: 0.85rem; color: var(--tint-2); }
@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 5 / 4; }
  .stage .deg { font-size: 30cqw; }
}

/* Subpage header */
.page-head { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2rem); }
.crumbs { font-family: var(--sans); font-size: 0.92rem; color: var(--tint-2); margin-bottom: 1.2rem; }
.crumbs a { color: var(--tint-2); }
.crumbs span[aria-hidden] { margin: 0 0.4rem; }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 4.25rem); max-width: 18ch; }
.page-head .lead { font-size: clamp(1.1rem, 1.7vw, 1.25rem); color: var(--tint-2); max-width: 46ch; margin: 0; }
.page-hero { margin: 0 0 clamp(2rem, 5vw, 3.5rem); }
.page-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 16px; }
@media (max-width: 40rem) { .page-hero img { aspect-ratio: 4 / 3; } }

.prose { max-width: var(--mõõt); }
.content { padding-bottom: clamp(3rem, 7vw, 5rem); }
.content > .wrap > .prose:first-child > :first-child { margin-top: 0; }

/* Figures and galleries */
.figure { margin: 2.2rem 0; max-width: 46rem; }
.figure img { width: 100%; border-radius: 12px; background: var(--valge); }
.figure figcaption, .gallery figcaption, .compare figcaption { font-family: var(--sans); font-size: 0.88rem; color: var(--tint-2); margin-top: 0.45rem; line-height: 1.4; }
.gallery { margin: 2.2rem 0 2.6rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: var(--laius); }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; background: var(--valge); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } .gallery a:hover img { transform: none; } }
@media (max-width: 40rem) { .gallery { grid-template-columns: 1fr 1fr; } }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.2rem 0; max-width: 46rem; }
.compare figure { margin: 0; background: var(--valge); border-radius: 14px; padding: 1rem 1rem 0.8rem; }
.compare img { width: 100%; height: clamp(14rem, 34vw, 22rem); object-fit: contain; }
.compare figcaption { font-weight: 650; color: var(--tint); font-size: 0.95rem; }
.compare figure:first-child figcaption::before { content: "90°  "; color: var(--vale); }
.compare figure:last-child figcaption::before { content: "135°  "; color: var(--hea); }

/* Angle band */
.angle { background: var(--tint); color: #e6eaed; margin: 3.5rem calc(50% - 50vw); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.angle .inner { max-width: var(--laius); margin: 0 auto; padding: 0 var(--serv); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.angle h2 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.25rem); letter-spacing: -0.045em; line-height: 0.98; margin: 0 0 0.45em; }
.angle h2 .a90 { color: #ff7d71; }
.angle h2 .a135 { color: #6fd8a2; }
.angle p { max-width: 44ch; }
.angle .figs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.angle figure { margin: 0; background: #252d34; border-radius: 16px; padding: 1rem 0.8rem 0.9rem; }
.angle svg { width: 100%; height: auto; display: block; }
.angle figcaption { font-family: var(--sans); font-size: 0.92rem; color: #b8c1c8; text-align: center; margin-top: 0.4rem; }
.angle figcaption b { display: block; color: #fff; font-size: 1.05rem; }
@media (max-width: 52rem) { .angle .inner { grid-template-columns: 1fr; } }

/* Models */
.models { margin: 3.5rem 0; scroll-margin-top: 1rem; }
.models > h2 { margin-top: 0; }
.models > p { max-width: var(--mõõt); }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.6rem; }
.model { background: var(--valge); border-radius: 18px; padding: 1rem 1.2rem 1.3rem; display: flex; flex-direction: column; }
.model img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; margin-bottom: 0.6rem; }
.model h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.model .tags { list-style: none; padding: 0; margin: 0 0 0.8rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.model .tags li { margin: 0; font-family: var(--sans); font-size: 0.8rem; font-weight: 600; background: var(--kriit); color: var(--tint); padding: 0.25rem 0.6rem; border-radius: 999px; }
.model .tags li.two { background: var(--hea-hele); color: var(--hea-tume); }
.model p { font-size: 0.98rem; line-height: 1.6; margin-bottom: 1rem; }
.model .go { margin-top: auto; font-family: var(--sans); font-weight: 650; }
@media (max-width: 62rem) { .model-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .model-grid { grid-template-columns: 1fr; } .model img { aspect-ratio: 1; } }

/* Specs */
.specs { margin: 3rem 0; max-width: 50rem; background: var(--valge); border-radius: 18px; padding: clamp(1.3rem, 3vw, 2rem); }
.specs h2 { margin: 0 0 1rem; font-size: 1.5rem; }
.specs dl { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; margin: 0; }
.specs dt, .specs dd { margin: 0; padding: 0.6rem 0; border-top: 1px solid var(--joon); }
.specs dt { font-family: var(--sans); font-weight: 650; padding-right: 1rem; }
.specs dd { font-variant-numeric: tabular-nums; }
.specs .more { margin: 1.2rem 0 0; font-family: var(--sans); }
@media (max-width: 34rem) { .specs dl { grid-template-columns: 1fr; } .specs dd { border-top: 0; padding-top: 0; } }

/* FAQ */
.faq { max-width: var(--mõõt); }
.faq details { border-top: 1px solid var(--joon); }
.faq details:last-of-type { border-bottom: 1px solid var(--joon); }
.faq summary { font-family: var(--sans); font-weight: 650; font-size: 1.15rem; line-height: 1.3; cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2 { font: inherit; letter-spacing: -0.01em; margin: 0; display: inline; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.4rem; width: 0.65rem; height: 0.65rem; border-right: 2px solid var(--hea); border-bottom: 2px solid var(--hea); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(225deg); top: 1.7rem; }
.faq .answer { padding: 0 0 1.2rem; }
.faq .answer > :last-child { margin-bottom: 0; }

/* Related */
.related { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--joon); max-width: var(--mõõt); }
.related h2 { font-size: 1.25rem; margin: 0 0 0.8rem; }
.related ul { list-style: none; padding: 0; margin: 0; font-family: var(--sans); }
.related li { margin: 0; }
.related a { display: block; padding: 0.55rem 0; border-bottom: 1px solid var(--joon); text-decoration: none; color: var(--tint); }
.related a:hover { color: var(--hea); }

/* Inquiry */
.inquiry { background: var(--valge); border-top: 1px solid var(--joon); padding: clamp(3rem, 7vw, 5rem) 0; scroll-margin-top: 1rem; }
.inquiry .wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 4.5rem); }
.inquiry h2 { margin-top: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; }
.inquiry .side p { max-width: 38ch; color: var(--tint-2); }
.inquiry .side ul { padding-left: 1.1em; color: var(--tint-2); }
form.ask { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; font-family: var(--sans); }
form.ask .full { grid-column: 1 / -1; }
form.ask label { display: block; font-weight: 650; font-size: 0.95rem; margin-bottom: 0.35rem; }
form.ask label span { font-weight: 400; color: var(--tint-2); }
form.ask input, form.ask textarea, form.ask select { width: 100%; font: inherit; font-size: 1rem; color: var(--tint); background: var(--kriit); border: 1px solid #b9c1c7; border-radius: 10px; padding: 0.75rem 0.85rem; }
form.ask textarea { min-height: 8.5rem; resize: vertical; }
form.ask input:focus, form.ask textarea:focus, form.ask select:focus { outline: 3px solid var(--hea); outline-offset: 0; border-color: var(--hea); background: #fff; }
form.ask .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.ask .note { font-size: 0.88rem; color: var(--tint-2); margin: 0; }
form.ask .send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.notice { font-family: var(--sans); padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1rem; grid-column: 1 / -1; }
.notice.error { background: #f8e4e2; border: 1px solid #e0a9a4; color: #8f2a25; }
@media (max-width: 52rem) { .inquiry .wrap { grid-template-columns: 1fr; } }
@media (max-width: 34rem) { form.ask { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: var(--tint); color: #c7cfd5; padding: 3rem 0 2rem; font-family: var(--sans); font-size: 0.98rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-foot a { color: #fff; }
.site-foot h2 { font-size: 1rem; color: #fff; margin: 0 0 0.8rem; letter-spacing: 0; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 0.45rem; }
.site-foot p { max-width: 36ch; }
.site-foot .base { grid-column: 1 / -1; max-width: none; border-top: 1px solid #353f48; padding-top: 1.2rem; margin-top: 1rem; font-size: 0.88rem; color: #98a3ac; }
@media (max-width: 52rem) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* Consent banner */
.consent {
  position: fixed; z-index: 20; left: max(1rem, env(safe-area-inset-left, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  max-width: 30rem; margin-right: 1rem; background: var(--valge); color: var(--tint);
  border: 1px solid var(--joon); border-radius: 14px; padding: 1.1rem 1.2rem;
  box-shadow: 0 14px 40px rgba(27, 33, 39, 0.18); font-family: var(--sans); font-size: 0.95rem; line-height: 1.45;
}
.consent p { margin: 0 0 0.9rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consent .btn { padding: 0.7rem 1.1rem; font-size: 0.95rem; }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(20, 25, 30, 0.9); }
dialog.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 10px; background: #fff; }
dialog.lightbox p { color: #eee; font-family: var(--sans); text-align: center; margin: 0.6rem 0 0; }
dialog.lightbox button { position: fixed; font: 650 1rem var(--sans); background: #fff; color: var(--tint); border: 0; border-radius: 999px; cursor: pointer; }
dialog.lightbox .lb-close { top: 1rem; right: 1rem; padding: 0.6rem 1rem; }
dialog.lightbox .lb-nav { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; font-size: 2rem; line-height: 1; padding: 0 0 0.2rem; background: rgba(255, 255, 255, 0.92); }
dialog.lightbox .lb-prev { left: max(1rem, env(safe-area-inset-left, 0px)); }
dialog.lightbox .lb-next { right: max(1rem, env(safe-area-inset-right, 0px)); }
dialog.lightbox button[hidden] { display: none; }
@media (max-width: 40rem) { dialog.lightbox .lb-nav { top: auto; bottom: 1rem; transform: none; } }

.plain { padding: clamp(3rem, 8vw, 6rem) 0; min-height: 50vh; }
.plain .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
