/* Tabata Takts webbsida – gemensam stil för startsidan och integritetssidan.
   Formspråk som en produktsida: systemtypsnittet (SF Pro på Apple-enheter),
   stora centrerade rubriker, mycket luft och sektioner i vitt, ljusgrått och svart. */

:root {
  /* Appens fasfärger */
  --prepare: #F28C1A;
  --work: #1AA64C;
  --rest: #2673D9;
  --round: #664DD9;
  --cooldown: #1A8C99;
  --done: #8C33A6;
  --ring-green: #34D35C;   /* ikonens ring */
  --ring-blue: #2B8FFF;

  --ink: #1D1D1F;
  --muted: #6E6E73;
  --gray: #F5F5F7;
  --rule: #D2D2D7;
  --night: #000000;
  --night-muted: #A1A1A6;
  --night-tile: #161617;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { 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: #FFFFFF;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--rest); outline-offset: 3px; border-radius: 8px; }
img { display: block; max-width: 100%; }
p { margin: 0; }
strong { font-weight: 600; }
.wrap { max-width: 1024px; margin: 0 auto; padding: 0 22px; }

/* Text och bilder finns på båda språken; bara det aktiva visas. */
html[lang="sv"] .en-only, html[lang="en"] .sv-only { display: none !important; }

/* ---------- Meny ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: #F5F5F7;
}
.nav :focus-visible { outline-color: #FFFFFF; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; }
.nav .brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.nav .brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav-right { display: flex; align-items: center; gap: 18px; font-size: 0.875rem; }
.nav-right a { text-decoration: none; color: #D2D2D7; }
.nav-right a:hover { color: #FFFFFF; }
.lang { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.lang button {
  font: inherit; font-size: 0.8125rem; font-weight: 500;
  color: #D2D2D7; background: transparent;
  border: 0; border-radius: 999px; padding: 4px 11px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #F5F5F7; color: #000; }

/* ---------- Typografi ---------- */
.eyebrow { font-size: clamp(1.1875rem, 2vw, 1.5rem); font-weight: 600; color: var(--c); margin-bottom: 8px; }
.headline {
  margin: 0;
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  line-height: 1.05; font-weight: 700; letter-spacing: -0.03em;
}
.lede {
  margin: 20px auto 0; max-width: 40rem;
  font-size: clamp(1.1875rem, 2vw, 1.375rem); line-height: 1.4; font-weight: 500;
  color: var(--muted);
}
.center { text-align: center; }

/* ---------- Telefon ---------- */
.phone {
  margin: 0;
  background: #000;
  border-radius: 44px;
  padding: 7px;
  box-shadow: 0 0 0 1.5px #2C2C2E, 0 30px 80px rgba(0, 0, 0, 0.25);
}
.phone img { border-radius: 37px; aspect-ratio: 1320 / 2868; width: 100%; height: auto; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { background: var(--night); color: #F5F5F7; overflow: hidden; text-align: center; }
.hero .wrap { padding-top: 72px; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 0 60px rgba(52, 211, 92, 0.25); }
.hero .name { font-size: clamp(1.3125rem, 2.4vw, 1.75rem); font-weight: 600; margin-bottom: 4px; }
.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  line-height: 1; font-weight: 700; letter-spacing: -0.04em;
}
.hero .lede { color: var(--night-muted); }
.soon {
  display: inline-block; margin-top: 30px;
  padding: 12px 24px; border-radius: 999px;
  background: #F5F5F7; color: #000;
  font-size: 1.0625rem; font-weight: 500;
}
.hero-phones {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start; gap: 28px;   /* naturlig höjd – ramen skärs av, trycks inte ihop */
  max-width: 860px; margin: 72px auto 0;
  /* Telefonerna skärs av nedtill, som om de står i sektionens kant */
  height: clamp(320px, 52vw, 560px); overflow: hidden;
}
.hero-phones .phone:nth-child(2) { transform: translateY(0); }
.hero-phones .phone:nth-child(1), .hero-phones .phone:nth-child(3) { transform: translateY(70px); }

/* ---------- Sektioner ---------- */
.section { padding: 120px 0 0; overflow: hidden; }
.section.gray { background: var(--gray); }
.section .shots {
  display: flex; justify-content: center; align-items: flex-start; gap: 32px;   /* ej stretch: ramen ska skäras av, inte krympa */
  margin-top: 64px;
  height: clamp(340px, 56vw, 600px); overflow: hidden;   /* skärs av nedtill */
}
.section .shots .phone { width: min(320px, 44%); }
.blocks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 40rem; margin: 28px auto 0; padding: 0; list-style: none;
}
.blocks li {
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; color: #FFFFFF; background: var(--c);
}

/* ---------- Rutnät med funktioner ---------- */
.tiles-section { padding: 120px 0; }
.tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  margin-top: 56px;
}
.tile {
  position: relative; overflow: hidden;
  border-radius: 28px; background: var(--gray);
  padding: 40px 36px 0; min-height: 520px;
  display: flex; flex-direction: column;
}
.tile.dark { background: var(--night-tile); color: #F5F5F7; }
.tile.dark .tile-text { color: var(--night-muted); }
.tile h3 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; }
.tile .tile-text { color: var(--muted); font-size: 1.0625rem; max-width: 26rem; }
.tile .tile-eyebrow { font-weight: 600; color: var(--c); margin-bottom: 6px; }
.tile .phone {
  width: 62%; margin: 36px auto -45%;   /* sticker upp nerifrån */
  box-shadow: 0 0 0 1.5px #2C2C2E, 0 20px 50px rgba(0, 0, 0, 0.2);
}
.tile.text-only { justify-content: flex-end; padding-bottom: 40px; min-height: 0; }
.tile .more { margin-top: 14px; font-weight: 500; color: #0066CC; text-decoration: none; }
.tile .more:hover { text-decoration: underline; }
.tile.dark .more { color: #2997FF; }

/* ---------- Avslutning ---------- */
.closing { background: var(--night); color: #F5F5F7; text-align: center; padding: 110px 0; }
.closing img { width: 80px; height: 80px; border-radius: 18px; margin: 0 auto 20px; }
.closing .headline { font-size: clamp(2.25rem, 5vw, 3.5rem); }

footer { background: var(--gray); color: var(--muted); font-size: 0.75rem; padding: 18px 0 28px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 14px; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- Integritetssidan ---------- */
.policy { padding: 72px 0 96px; }
.policy .wrap { max-width: 720px; }
.policy h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 3.5rem); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; }
.updated { color: var(--muted); margin-top: 10px; }
.zero-band {
  display: flex; align-items: center; gap: 22px;
  background: var(--gray); border-radius: 24px; padding: 18px 28px;
  margin: 36px 0 32px;
}
.zero-band .digit { font-size: 4.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--done); }
.zero-band p { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.policy article > p { margin-bottom: 14px; font-size: 1.0625rem; }
.policy h2 { font-size: 1.5rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 10px; }
ul.nothing { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--rule); }
ul.nothing li { padding: 12px 0; border-bottom: 1px solid var(--rule); }

/* ---------- Mörkt läge: bara de ljusa ytorna byter ---------- */
@media (prefers-color-scheme: dark) {
  :root { --ink: #F5F5F7; --muted: #A1A1A6; --gray: #161617; --rule: #424245; }
  body { background: #000; }
  .tile .more { color: #2997FF; }
}

/* ---------- Smala skärmar ---------- */
@media (max-width: 760px) {
  .hero .wrap { padding-top: 52px; }
  .hero-phones { gap: 12px; margin-top: 52px; }
  .hero-phones .phone:nth-child(1), .hero-phones .phone:nth-child(3) { transform: translateY(40px); }
  .phone { border-radius: 26px; padding: 4px; }
  .phone img { border-radius: 22px; }
  .section { padding-top: 88px; }
  .section .shots { gap: 14px; margin-top: 44px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 460px; padding: 32px 26px 0; }
  .tile.text-only { min-height: 0; padding-bottom: 32px; }
  .tiles-section { padding: 88px 0; }
  .nav-right a { display: none; }
}
