/* ILVES veebileht — ühine stiil kõigile lehtedele (ET ja EN). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-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: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-wdth-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+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --crimson: #8a0d29;
  --crimson-deep: #5e0719;
  --signal: #e5302c;
  --night: #0f1b28;
  --night-2: #172636;
  --ink: #15212e;
  --muted: #566573;
  --paper: #f1f3f4;
  --line: #d3dade;
  --tan: #d9965f;
  --white: #ffffff;
  --measure: 66ch;
  --wrap: 1120px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*,
*::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(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--tan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Päis ---------- */

.site-header {
  position: relative;
  z-index: 2;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.97rem;
}
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.lang {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-weight: 600;
}
.lang:hover { text-decoration: none !important; background: rgba(255, 255, 255, 0.12); }

.on-dark { color: var(--white); }

@media (max-width: 760px) {
  .nav .nav-section { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--crimson);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  /* Sama punane kuma, mis äpi häireekraanil. */
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle at center, rgba(229, 48, 44, 0.55), rgba(229, 48, 44, 0) 62%);
  pointer-events: none;
}
.hero > .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}
.hero h1 {
  margin: 0 0 1.5rem;
  font-weight: 800;
  font-stretch: 72%;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
  max-width: 13ch;
}
.hero .lede {
  margin: 0 0 2rem;
  font-size: 1.2rem;
  line-height: 1.55;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.9);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary { background: var(--white); color: var(--crimson); }
.btn-primary:hover { background: #ffe9e6; }
.btn-text { color: var(--white); text-decoration: underline; font-weight: 600; padding-left: 0; padding-right: 0; }
.hero .where {
  margin: 2.25rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Lukustusekraan häirega */
.lock {
  justify-self: center;
  width: min(100%, 340px);
  aspect-ratio: 9 / 18.5;
  background: linear-gradient(170deg, var(--night-2), var(--night) 60%);
  border-radius: 44px;
  border: 10px solid #0a121b;
  box-shadow: 0 30px 60px rgba(40, 0, 10, 0.45);
  padding: 3.25rem 0.9rem 1rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.lock-time {
  text-align: center;
  font-weight: 300;
  font-stretch: 100%;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.lock-date {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.4rem 0 1.75rem;
}
.notif {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 18px;
  padding: 0.8rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.35;
  animation: alert 2.6s ease-in-out infinite;
}
.notif + .notif { margin-top: 0.6rem; animation: none; background: rgba(255, 255, 255, 0.8); }
.notif-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.notif-top img { width: 20px; height: 20px; border-radius: 5px; }
.notif-top .t { margin-left: auto; }
.notif strong { display: block; font-size: 0.95rem; }
.notif .crit { color: var(--signal); font-weight: 700; font-size: 0.75rem; }
@keyframes alert {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 48, 44, 0); }
  50% { box-shadow: 0 0 0 7px rgba(229, 48, 44, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .notif { animation: none; }
  .notif-new { box-shadow: 0 0 0 4px rgba(229, 48, 44, 0.5); }
}

/* Äpi avaleht telefonis: arvutis paremal täies kõrguses, mobiilis paistab
   paremalt servast poolenisti välja. */
.lock { display: none; }
.hero > .wrap { display: block; }
.hero > .wrap::after { content: ""; display: block; clear: both; }
.peek {
  float: right;
  width: 330px;
  margin: 0 2rem 0 2rem;
  box-shadow: 0 30px 60px rgba(40, 0, 10, 0.45);
}

/* iPhone 17 Pro: alumiiniumserv, õhuke must raam, Dynamic Island, nupud. */
.device {
  position: relative;
  padding: 1.1%;
  border-radius: 14.2% / 6.55%;
  background:
    linear-gradient(135deg, #7d8590 0%, #c9ced5 18%, #5d646e 45%, #aab1ba 70%, #4b525b 100%);
  isolation: isolate;
}
.device > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1565;
  border: solid #020304;
  border-width: 9px;
  border-radius: 13.4% / 6.15%;
  background: var(--night);
}
.device::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2.15%;
  width: 29%;
  aspect-ratio: 125 / 37;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.device::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 25%;
  width: 3px;
  height: 11%;
  border-radius: 0 3px 3px 0;
  background: #6c737c;
  z-index: -1;
}
@media (max-width: 860px) {
  .hero > .wrap { padding-top: 0.75rem; padding-bottom: 3rem; }
  .hero h1 { font-size: 2.45rem; }
  .peek {
    width: 230px;
    margin: 0.25rem -125px 1.25rem 1rem;
    box-shadow: 0 24px 48px rgba(40, 0, 10, 0.45);
  }
  .hero .actions { clear: both; padding-top: 0.5rem; }
}
@media (max-width: 360px) {
  .peek { width: 200px; margin-right: -115px; }
  .hero h1 { font-size: 2.2rem; }
}

/* ---------- Sektsioonid ---------- */

.section { padding: 5.5rem 0; }
.section h2 {
  margin: 0 0 1rem;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.02;
}
.section .intro {
  margin: 0 0 3rem;
  max-width: var(--measure);
  font-size: 1.15rem;
  color: var(--muted);
}
@media (max-width: 600px) { .section { padding: 4rem 0; } }

/* Kuidas töötab — päris järjestus */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  max-width: 820px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 1.25rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-weight: 800;
  font-stretch: 62%;
  font-size: 3.4rem;
  line-height: 0.9;
  color: var(--tan);
}
.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.25;
}
.steps p { margin: 0; max-width: 58ch; color: var(--muted); }
.aside-note {
  margin: 2rem 0 0;
  max-width: 820px;
  padding-left: 1.25rem;
  border-left: 4px solid var(--signal);
}

/* Võimalused */
.features { background: var(--white); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 4rem;
}
.feature-grid h3 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
  font-stretch: 80%;
}
.feature-grid ul { margin: 0; padding: 0; list-style: none; }
.feature-grid li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.feature-grid li strong { font-weight: 700; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* Ekraanipildid */
.screens { background: var(--night); color: var(--white); }
.screens .intro { color: rgba(255, 255, 255, 0.72); }
.shot-row {
  display: flex;
  gap: 1.5rem;
  margin: 0;
}
.shot-row figure { margin: 0; flex: 1 1 0; min-width: 0; }
.shot-row .device > img { border-width: 6px; }
@media (max-width: 1000px) {
  .shot-row {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
  }
  .shot-row figure { flex: 0 0 38%; scroll-snap-align: start; }
}
.shot-row .device { box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
@media (max-width: 860px) {
  .device > img { border-width: 6px; }
}
.shot-row figcaption {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 34ch;
}
@media (max-width: 760px) {
  .shot-row {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    gap: 1rem;
  }
  .shot-row figure { scroll-snap-align: start; flex-basis: 72%; }
}

/* Privaatsus lühidalt */
.privacy-short .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: start;
}
.facts { margin: 0; padding: 0; list-style: none; }
.facts li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}
.facts li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .privacy-short .wrap { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Probleem */
.problem { background: var(--white); }
.problem .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: start;
}
.problem .wrap > div > p { margin: 0; font-size: 1.15rem; color: var(--muted); max-width: 40ch; }
.problem .facts strong { display: block; margin-bottom: .2rem; }
.problem .facts span { color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) { .problem .wrap { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Komandodele */
.cta { background: var(--crimson); color: var(--white); }
.cta h2 { max-width: 22ch; }
.cta p { font-size: 1.2rem; max-width: 52ch; margin: 0 0 2rem; color: rgba(255, 255, 255, 0.9); }
.cta .mail {
  display: inline-block;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  word-break: break-word;
}

/* ---------- Jalus ---------- */

.site-footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--white); }

/* ---------- Tekstilehed (privaatsus, tugi) ---------- */

.page-head { background: var(--night); color: var(--white); }
.page-head .wrap { padding-bottom: 3rem; }
.page-head h1 {
  margin: 1.5rem 0 0.5rem;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.02;
}
.page-head p { margin: 0; color: rgba(255, 255, 255, 0.72); }

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}
.prose h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.2;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.75rem 0 0.4rem; font-size: 1.15rem; font-weight: 700; }
.prose p, .prose li { max-width: var(--measure); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose .contact {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border-left: 4px solid var(--crimson);
}
.prose .contact p { margin: 0; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.25rem 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2rem 1rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 0.85rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--crimson);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.25rem; }
.faq details > div p:first-child { margin-top: 0; }
