/* Teidi website: the app's design – one typeface (Oswald) in capitals, calm
   surfaces, almost square corners, signal yellow as the only accent. */

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url('fonts/oswald-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: 'Oswald';
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url('fonts/oswald-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+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;
}

:root {
  /* Prices: the only place they are set; the page shows them from here. */
  --price-month: '1,99 €';
  --price-year: '14,99 €';

  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #ebebe8;
  --ink: #16181a;
  --ink-2: #34383c;
  --muted: #6e7378;
  --hair: rgb(22 24 26 / 0.08);
  --signal: #ffd200;
  --signal-ink: #16181a;
  --shadow-1: 0 1px 2px rgb(16 18 20 / 0.06), 0 1px 1px rgb(16 18 20 / 0.03);
  --shadow-2: 0 4px 14px rgb(16 18 20 / 0.08), 0 1px 3px rgb(16 18 20 / 0.06);
  --shadow-3: 0 30px 70px rgb(16 18 20 / 0.22), 0 6px 16px rgb(16 18 20 / 0.08);
  --r: 2px;
  --wide: 72rem;
  --pad: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e10;
    --surface: #18191c;
    --surface-2: #232529;
    --ink: #ededea;
    --ink-2: #c9cbc8;
    --muted: #8f9499;
    --hair: rgb(255 255 255 / 0.08);
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 6px 18px rgb(0 0 0 / 0.45);
    --shadow-3: 0 30px 70px rgb(0 0 0 / 0.65);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 1.0625rem/1.5 'Oswald', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
}

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

.wrap {
  width: min(100% - 2 * var(--pad), var(--wide));
  margin-inline: auto;
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.5rem;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.mark {
  width: 1.15em;
  height: 1.15em;
  border-radius: var(--r);
  background: var(--signal);
}

.top nav {
  display: flex;
  gap: 1.3rem;
  margin-left: auto;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 550;
}

.top nav a:hover {
  color: var(--ink);
}

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

  .top .btn {
    margin-left: auto;
  }
}

/* ---------- buttons, labels ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.3rem;
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.btn.primary {
  background: var(--ink);
  color: var(--bg);
}

.btn.signal {
  background: var(--signal);
  color: var(--signal-ink);
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--signal);
  color: var(--signal-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

h1 {
  margin: 0.8rem 0 1.6rem;
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5.2rem);
  line-height: 0.98;
  font-weight: 650;
  letter-spacing: -0.005em;
}

h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--signal) 62%);
}

.lead {
  max-width: 34rem;
  margin: 0 0 1.8rem;
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 450;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 30rem;
}

.phone {
  width: min(17rem, 46vw);
  border: 0.55rem solid #16181a;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: var(--shadow-3);
  background: #16181a;
}

.phones .phone + .phone {
  position: absolute;
  right: 0;
  bottom: -2.5rem;
  width: min(14rem, 38vw);
  transform: rotate(4deg);
}

.phones .phone:first-child {
  transform: rotate(-3deg) translateX(-2.5rem);
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .phones {
    min-height: 0;
    margin-bottom: 2.5rem;
  }

  .phones .phone:first-child {
    transform: rotate(-3deg) translateX(-12%);
  }
}

/* ---------- sections ---------- */

section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

section.band {
  background: var(--surface);
  border-block: 1px solid var(--hair);
}

h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem);
  line-height: 1.02;
  font-weight: 650;
}

.kicker {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

h2 + .cards,
h2 + .faq {
  margin-top: 2rem;
}

.intro {
  max-width: 40rem;
  margin: 0 0 2.4rem;
  color: var(--ink-2);
  font-weight: 450;
  font-size: 1.15rem;
}

/* Feature cards, like the app's tiles: a white face and a grey footer. */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.band .card {
  background: var(--bg);
}

.card h3 {
  margin: 0;
  padding: 1.1rem 1.2rem 0.5rem;
  font-size: 1.35rem;
  font-weight: 620;
  line-height: 1.12;
}

.card p {
  flex: 1;
  margin: 0;
  padding: 0 1.2rem 1.2rem;
  color: var(--ink-2);
  font-weight: 450;
}

.card footer {
  padding: 0.55rem 1.2rem;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Screens */
.screens {
  display: grid;
  grid-template-columns: 2.6fr 1fr 1fr;
  gap: 1.2rem;
  align-items: end;
}

.screens figure {
  margin: 0;
}

.screens figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
}

.screens .desktop img {
  border-radius: var(--r);
  box-shadow: var(--shadow-3);
  border: 1px solid var(--hair);
}

.screens .phone {
  width: 100%;
  border-width: 0.4rem;
  border-radius: 1.2rem;
}

@media (max-width: 860px) {
  .screens {
    grid-template-columns: 1fr 1fr;
  }

  .screens .desktop {
    grid-column: 1 / -1;
  }
}

/* Security */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 1rem 1.2rem;
  border-radius: var(--r);
  background: var(--bg);
  box-shadow: var(--shadow-1);
}

.list strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 620;
}

.list span {
  color: var(--ink-2);
  font-weight: 450;
}

.sees {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--signal);
  color: var(--ink-2);
  font-weight: 450;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 3.6rem 1.2rem 1.3rem;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  counter-increment: step;
  color: var(--ink-2);
  font-weight: 450;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 1.1rem;
  left: 1.2rem;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 650;
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 620;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.6rem;
}

.faq details {
  border-radius: var(--r);
  background: var(--bg);
  box-shadow: var(--shadow-1);
}

.faq summary {
  padding: 1rem 1.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::after {
  content: '+';
  float: right;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: '–';
}

.faq p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-2);
  font-weight: 450;
}

/* Call to action */
.cta {
  text-align: center;
}

.cta .actions {
  justify-content: center;
}

/* ---------- footer ---------- */

.foot {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 0.95rem;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
}

.foot .spacer {
  flex: 1;
}

/* ---------- text pages (imprint, privacy) ---------- */

.text-page {
  max-width: 46rem;
  padding: clamp(2rem, 5vw, 4rem) 0;
  text-transform: none;
  font-weight: 400;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
}

.text-page h1,
.text-page h2 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
}

.text-page h1 {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
}

.text-page h2 {
  margin-top: 2.2rem;
  font-size: 1.5rem;
}

.text-page .todo {
  padding: 0.1rem 0.35rem;
  background: var(--signal);
  color: var(--signal-ink);
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.plan.plus {
  box-shadow: inset 0 0 0 3px var(--signal), var(--shadow-2);
}

.plan h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 620;
}

.price {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 650;
  line-height: 1;
}

.price-month::before {
  content: var(--price-month);
}

.price-year::before {
  content: var(--price-year);
}

.price .per {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
}

.plan ul {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-2);
  font-weight: 500;
}

.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ink);
  font-weight: 700;
}

.small {
  margin: 0;
  font-size: 0.95rem;
}

/* Features page */
.hero.short {
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.hero.short .wrap {
  display: block;
}

.card h3 .pill {
  margin-left: 0.4rem;
  vertical-align: 0.15em;
  font-size: 0.75rem;
}

.more {
  margin: 1.6rem 0 0;
}

.top nav a[aria-current='page'] {
  color: var(--ink);
}

.compare {
  width: 100%;
  max-width: 50rem;
  margin-bottom: 2rem;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--hair);
  text-align: center;
  font-weight: 550;
}

.compare th:first-child,
.compare td:first-child {
  text-align: left;
  color: var(--ink-2);
  font-weight: 500;
}

.compare th {
  font-size: 1.2rem;
  font-weight: 620;
}

.compare th:last-child,
.compare td:last-child {
  background: color-mix(in srgb, var(--signal) 18%, transparent);
}

.intro a {
  color: var(--ink);
}

/* Four features: one row on wide screens. */
@media (min-width: 1101px) {
  .cards:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* All features: one big panel to unfold */
.allpanel {
  margin-top: 2rem;
  border-radius: var(--r);
  background: var(--bg);
  box-shadow: var(--shadow-1);
}

.allpanel > summary {
  position: relative;
  padding: 1.2rem 3.2rem 1.2rem 1.4rem;
  font-size: 1.35rem;
  font-weight: 620;
  cursor: pointer;
  list-style: none;
}

.allpanel > summary::-webkit-details-marker {
  display: none;
}

.allpanel > summary::after {
  content: '+';
  position: absolute;
  right: 1.4rem;
  top: 1rem;
  color: var(--muted);
  font-size: 1.6rem;
}

.allpanel[open] > summary::after {
  content: '–';
}

.allbody {
  display: grid;
  gap: 2.4rem;
  padding: 0.6rem 1.4rem 1.8rem;
}

.topic > h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  font-weight: 650;
  line-height: 1.05;
}

.topic .kicker {
  margin-bottom: 0.3rem;
}

.topic .card {
  background: var(--surface);
}

.topic .compare {
  background: var(--surface);
}

.allpanel .compare {
  max-width: none;
}

.fold {
  justify-self: center;
  border: none;
  font: inherit;
  font-weight: 600;
  text-transform: inherit;
  letter-spacing: 0.03em;
  cursor: pointer;
}

/* Jumps land below the sticky header. */
section,
.allpanel {
  scroll-margin-top: 5rem;
}

/* The Plus hook */
.hook {
  margin: 0;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 650;
  line-height: 1.02;
}

.hook-sub {
  margin: -0.3rem 0 0.4rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--r);
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 550;
  line-height: 1.3;
}

/* Both plans share one row grid: top, price, list and foot line up. */
.plans {
  grid-template-rows: auto auto 1fr auto;
}

.plan {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  gap: 0.9rem;
}

.plan-top {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.plan-foot {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
}

@media (max-width: 700px) {
  .plans {
    grid-template-rows: none;
  }

  .plan {
    grid-row: auto;
    grid-template-rows: none;
  }
}

/* ---------- beta sign-up ---------- */

.beta .list {
  margin-top: 1.4rem;
}

.beta .list li {
  background: var(--surface);
}

.signup {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: inset 0 0 0 3px var(--signal), var(--shadow-2);
}

.signup h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 620;
}

.signup label {
  display: grid;
  gap: 0.35rem;
}

.label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
}

.input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--ink);
  font: 500 1rem/1.4 'Oswald', 'Arial Narrow', sans-serif;
  letter-spacing: 0.01em;
}

/* Addresses and notes keep their case. */
input.input,
textarea.input {
  text-transform: none;
  resize: vertical;
}

.input:focus-visible,
.check input:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.signup .check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.check input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.15rem 0 0;
  accent-color: var(--ink);
}

.signup .btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.signup .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.status:empty {
  display: none;
}

.status {
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: var(--r);
  background: var(--surface-2);
  font-weight: 550;
}

.status.ok {
  background: var(--signal);
  color: var(--signal-ink);
}

.status.error {
  box-shadow: inset 3px 0 0 #e5484d;
}

/* The confirmation page */
.notice {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.notice .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.notice button.btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.notice-page {
  min-height: 50vh;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.notice-page h1 {
  margin: 0;
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
  line-height: 1.1;
}

/* Buttons don't inherit the page's capitals. */
button.btn {
  text-transform: uppercase;
}
