/* ciba.me: the only stylesheet. Tokens on :root; breakpoints 1024px and 767px.
   Amatic SC for titles, prices and the wordmark; Montserrat (variable) for the rest. */

@font-face {
  font-family: "Amatic SC";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/amatic-sc-400.woff2") format("woff2");
}
@font-face {
  font-family: "Amatic SC";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/amatic-sc-700.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat.woff2") format("woff2");
}

:root {
  --red: #e41e1e;
  --red-dark: #b81414;
  --pink: #ffb5b9;
  --pink-soft: #f3cdcf;
  --ink: #54595f; /* titles */
  --text: #666a70; /* body copy */
  --muted: #6f7378; /* 4.8:1 on white */
  --bg: #ffffff;
  --bg-soft: #fdf8f7; /* services band */
  --bg-card: #f7f7f7; /* price header */
  --line: #ececec;
  --shadow: 0 10px 30px rgba(84, 89, 95, 0.1);
  --radius: 4px;
  --font-title: "Amatic SC", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1140px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 16px/1.6 var(--font-body);
}

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

a {
  color: var(--red);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--red);
  font: 700 2.4rem/1 var(--font-title);
  text-decoration: none;
}
.brand img {
  width: 38px;
  height: 38px;
}

.nav-toggle {
  display: none;
  padding: 10px;
  margin-right: -10px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 8px 16px;
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover,
.nav a[aria-current] {
  color: var(--red);
  border-bottom-color: var(--pink-soft);
}

/* ---------- Common section parts ---------- */

.section {
  padding: 96px 0;
}
.section--soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--red-dark);
  font-weight: 600;
}
.section-head h2 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
}
.section-head h2::after {
  content: "";
  display: block;
  width: 228px;
  max-width: 50%;
  height: 4px;
  margin: 28px auto 0;
  background: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 28px;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
.btn:active {
  transform: scale(0.97);
}
.btn .icon {
  font-size: 0.85em;
}
.btn--outline {
  border-color: var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.btn--outline:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.btn--white {
  border-color: #fff;
  background: #fff;
  color: var(--red);
}
.btn--white:hover {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 96px;
}
.hero-blobs {
  position: absolute;
  top: 20px;
  left: 0;
  width: min(1920px, 133vw);
  max-width: none;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-phone {
  justify-self: center;
  width: 330px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.18));
}
.hero-text {
  text-align: right;
}
.hero h1 {
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  line-height: 1.1;
}
.hero p {
  margin-bottom: 0.8em;
  font-size: 1.05rem;
}
.hero strong {
  color: var(--ink);
  font-weight: 600;
}
.hero .btn {
  margin-top: 28px;
}

/* ---------- Services ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  padding: 56px 36px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
  text-align: center;
}
.card .icon {
  margin: 0 auto 22px;
  color: var(--red);
  font-size: 3rem;
}
.card h3 {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 2rem;
}
.card p {
  margin: 0;
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  align-items: center;
  gap: 48px;
}
.feature-list {
  display: grid;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  display: flex;
  gap: 22px;
}
.feature .icon {
  color: var(--red);
  font-size: 2.6rem;
}
.feature h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font: 400 1.5rem/1.3 var(--font-body);
}
.feature p {
  margin: 0;
}
.feature-list--right .feature {
  flex-direction: row-reverse;
  text-align: right;
}

/* Phone slideshow: three screenshots stacked, one visible (site.js rotates them). */
.slides {
  display: grid;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.18));
}
.slides picture {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slides picture.is-active {
  opacity: 1;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 18px;
}
.dots button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dots button::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  border-radius: 50%;
  background: #cfcfcf;
  transition: background-color 0.2s;
}
.dots button[aria-current="true"]::before {
  background: var(--ink);
}

/* ---------- Demo band ---------- */

.demo {
  position: relative;
  padding: 0 0 120px;
  background: linear-gradient(180deg, var(--red) 0%, #d3171c 100%); /* white text stays AA */
  color: #fff;
  text-align: center;
}
.waves {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 72px;
  background: #fff;
}
.demo h2 {
  max-width: 720px;
  margin: 0 auto 24px;
  color: #fff;
  font-size: clamp(2.8rem, 5.5vw, 4rem);
}
.demo p {
  max-width: 640px;
  margin: 0 auto 0.6em;
}
.demo .qr {
  margin: 48px auto 36px;
  font-size: 13rem;
}
.demo .btn {
  margin-top: 24px;
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
}
.plan {
  position: relative;
  overflow: hidden;
  padding-bottom: 32px;
  text-align: center;
}
.plan h3 {
  padding: 28px 20px 22px;
  color: #000;
  font-size: 2.4rem;
  font-weight: 400;
}
.plan-price {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  padding: 44px 20px 40px;
  background: var(--bg-card);
  color: #000;
}
.plan-price .was {
  align-self: center;
  margin-right: 12px;
  color: var(--muted);
  font: 400 1.1rem/1 var(--font-title);
  text-decoration: line-through;
}
.plan-price .cur {
  align-self: flex-end;
  margin-bottom: 14px;
  font: 400 1.9rem/1 var(--font-title);
}
.plan-price .int {
  font: 400 5.4rem/0.85 var(--font-title);
}
.plan-price .rest {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  align-self: stretch;
}
.plan-price .dec {
  font: 400 1.9rem/1 var(--font-title);
}
.plan-price .per {
  color: var(--ink);
  font: 400 1rem/1 var(--font-body);
}
.plan ul {
  margin: 0;
  padding: 24px 20px 28px;
  list-style: none;
}
.plan li {
  padding: 10px 0;
  color: var(--muted);
}
.ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  overflow: hidden;
  pointer-events: none;
}
.ribbon span {
  position: absolute;
  top: 26px;
  right: -46px;
  width: 190px;
  padding: 6px 0;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg);
}
.plan--top {
  z-index: 1;
  order: 2;
  margin-top: -12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.plan--top .ribbon span {
  background: var(--red);
}
.plan--top .plan-price {
  padding-top: 56px;
  padding-bottom: 52px;
}
.plan:nth-child(1) {
  order: 1;
}
.plan:nth-child(2) {
  order: 3;
}

/* ---------- Contact ---------- */

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  max-width: 900px;
  margin: 0 auto;
}
.form .full {
  grid-column: 1 / -1;
}
.form label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}
.form .req {
  color: var(--red);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5d8dc;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.4 var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form select {
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2354595f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.form textarea {
  min-height: 150px;
  resize: vertical;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(228, 30, 30, 0.12);
}
.form ::placeholder {
  color: #84888e;
}
.form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form .note {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.form .actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.form button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.form-status {
  margin: 0;
  font-weight: 500;
}
.form-status:empty {
  display: none;
}
.form-status.is-ok {
  color: #2e7d32;
}
.form-status.is-error {
  color: var(--red);
}

/* ---------- CTA band + footer ---------- */

.cta {
  padding: 72px 0;
  background: var(--red);
  color: #fff;
}
.cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
}
.cta p {
  max-width: 760px;
  margin: 0;
}
.cta .btn {
  flex: none;
}

.site-footer {
  padding: 26px 0;
  background: var(--pink);
  color: #6b2a2d;
  font-size: 0.875rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: #6b2a2d;
}

/* ---------- Simple pages (privacy, 404) ---------- */

.page {
  padding: 72px 0 96px;
}
.page .container {
  max-width: 800px;
}
.page h1 {
  margin-bottom: 12px;
  font-size: clamp(3rem, 6vw, 4.2rem);
}
.page .updated {
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.prose h2 {
  margin: 44px 0 12px;
  color: var(--red);
  font-size: 2.1rem;
}
.prose h3 {
  margin: 28px 0 10px;
  font: 600 1.1rem/1.4 var(--font-body);
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.not-found {
  padding: 120px 0;
  text-align: center;
}
.not-found .code {
  margin: 0;
  color: var(--red);
  font: 700 9rem/1 var(--font-title);
}
.not-found h1 {
  margin-bottom: 18px;
  font-size: 3rem;
}
.not-found .btn {
  margin-top: 20px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero .container {
    gap: 20px;
  }
  .hero-phone {
    width: 280px;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .features .phone {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: 280px;
  }
  .card {
    padding: 44px 24px;
  }
  .cta .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }
  .section {
    padding: 72px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }

  .brand {
    font-size: 2.1rem;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: #fff;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
  }
  .nav.is-open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }
  .nav a {
    padding: 14px 20px;
    border: 0;
  }

  .hero {
    padding: 24px 0 72px;
  }
  .hero-blobs {
    top: 0;
    width: 220vw;
  }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-phone {
    width: 240px;
  }
  .hero-text {
    text-align: center;
  }

  .cards,
  .features,
  .plans,
  .form {
    grid-template-columns: 1fr;
  }
  .features {
    gap: 40px;
  }
  .features .phone {
    width: 240px;
  }
  .feature-list--right .feature {
    flex-direction: row;
    text-align: left;
  }

  .waves {
    margin-bottom: 56px;
  }
  .demo {
    padding-bottom: 88px;
  }
  .demo .qr {
    font-size: 9rem;
  }

  .plans {
    gap: 24px;
  }
  .plan,
  .plan--top {
    order: 0;
    margin-top: 0;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .plan:nth-child(n) {
    order: 0;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
