/*
 * Caninedoc.se — produktsajten.
 *
 * Samma palett och typsnitt som appen på app.caninedoc.se. Den som klickar
 * "Kom igång" ska känna igen sig, inte tro att hen hamnat någon annanstans.
 *
 * Ren CSS utan byggsteg: sajten är fyra filer som DigitalOcean serverar som de
 * är. Ett byggsteg hade betytt en sak till som kan gå sönder mellan att texten
 * ändras och att den syns.
 */

:root {
  --ink: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --hairline: #f1f5f9;
  --surface: #ffffff;
  --canvas: #f8fafc;

  --accent-50: #e6f7f4;
  --accent-100: #c5ece7;
  --accent-400: #26b6a6;
  --accent-600: #0d9082;
  --accent-700: #0b7568;
  --accent-900: #084b45;

  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px -12px rgb(15 23 42 / 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* ------------------------------------------------------------- topprad -- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-600);
  color: #fff;
}

nav { display: flex; align-items: center; gap: 28px; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

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

.top-actions { display: flex; align-items: center; gap: 12px; }

/* ------------------------------------------------------------- knappar -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary { background: var(--accent-600); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-700); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent-400); }

.btn-plain { color: var(--muted); padding-inline: 6px; }
.btn-plain:hover { color: var(--ink); }

.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }

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

.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 420px at 78% -10%, var(--accent-50), transparent 70%),
    var(--surface);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent-100);
  background: var(--accent-50);
  color: var(--accent-700);
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(34px, 5.2vw, 56px);
  max-width: 17ch;
}

.hero .lede {
  margin-top: 20px;
  max-width: 56ch;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-note { margin-top: 16px; font-size: 14px; color: var(--faint); }

/* ------------------------------------------------------------ sektion -- */

section { padding: 76px 0; }

.section-head { max-width: 62ch; }

.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); }

.section-head p { margin-top: 14px; color: var(--muted); }

.tone-canvas { background: var(--canvas); border-block: 1px solid var(--line); }

/* -------------------------------------------------------------- rutor -- */

.grid {
  display: grid;
  gap: 20px;
  margin-top: 44px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 { font-size: 18px; }

.card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

.icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-50);
  color: var(--accent-700);
  margin-bottom: 16px;
}

/* ------------------------------------------------------------ växelvis -- */

.split {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.split + .split { margin-top: 76px; }

.split h3 { font-size: clamp(22px, 2.6vw, 27px); }

.split p { margin-top: 14px; color: var(--muted); }

.ticks { margin: 22px 0 0; padding: 0; list-style: none; }

.ticks li {
  position: relative;
  padding-left: 30px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 15.5px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--accent-50);
  box-shadow: inset 0 0 0 1px var(--accent-100);
}

.ticks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 6px;
  height: 3px;
  border-left: 1.7px solid var(--accent-700);
  border-bottom: 1.7px solid var(--accent-700);
  transform: rotate(-45deg);
}

/* ----------------------------------------------------------- skärmbild -- */

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
}

.dot { width: 9px; height: 9px; border-radius: 999px; background: var(--line); }

.shot-body { padding: 20px; font-size: 14px; }

.shot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--hairline);
}

.shot-row:last-child { border-bottom: 0; }

.shot-row b { font-weight: 600; }

.shot-row span { color: var(--faint); white-space: nowrap; }

.shot-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}

.shot-section + .shot-section { margin-top: 16px; }

.shot-section p { color: var(--ink); font-size: 14px; }

/* ---------------------------------------------------------------- pris -- */

.price-grid {
  display: grid;
  gap: 20px;
  margin-top: 44px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 760px;
}

.price {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.price.featured { border-color: var(--accent-400); box-shadow: var(--shadow); }

.price .amount { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }

.price .per { color: var(--muted); font-size: 15px; }

.badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-50);
  color: var(--accent-700);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.price .btn { margin-top: 22px; width: 100%; }

.included { margin-top: 40px; }

.included ul {
  display: grid;
  gap: 10px 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

/* ----------------------------------------------------------------- faq -- */

.faq { margin-top: 40px; display: grid; gap: 0; max-width: 78ch; }

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--accent-700);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
}

details[open] summary::after { content: "–"; }

details p { margin-top: 12px; color: var(--muted); max-width: 70ch; }

/* -------------------------------------------------------------- avslut -- */

.cta {
  margin: 0 0 76px;
  padding: 56px 40px;
  border-radius: 20px;
  background: linear-gradient(140deg, var(--accent-700), var(--accent-900));
  color: #fff;
  text-align: center;
}

.cta h2 { font-size: clamp(26px, 3.4vw, 34px); }

.cta p { margin: 14px auto 0; max-width: 52ch; color: rgb(255 255 255 / 0.82); }

.cta .btn { margin-top: 28px; background: #fff; color: var(--accent-800, #0a5c53); }

.cta .btn:hover { background: var(--accent-50); }

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 14.5px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: center;
}

.foot nav { gap: 22px; flex-wrap: wrap; }

@media (max-width: 760px) {
  nav.main { display: none; }
  .hero { padding: 60px 0 52px; }
  section { padding: 58px 0; }
  .cta { padding: 44px 24px; }
  .wrap { width: min(1120px, 100% - 32px); }
}

/* Under 420px ryms inte varumärke, "Logga in" och knappen på samma rad — då
   sköt topprraden ut sidan i sidled. "Logga in" står kvar i sidfoten. */
@media (max-width: 420px) {
  .top-actions .btn-plain { display: none; }
  .btn { padding: 10px 14px; font-size: 14.5px; }
  .brand { font-size: 16.5px; }
}

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

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.hero-shot { transform: rotate(0.4deg); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.stat {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 12px;
}

.stat span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}

.stat b { font-size: 19px; letter-spacing: -0.02em; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-shot { display: none; }
}
