/* telefonisterna.se */
:root {
  --ink: #0f3d3a;        /* deep green: headings, header */
  --ink-deep: #0a2b29;
  --text: #1c2b2a;
  --muted: #5b6b69;
  --line: #e3e8e6;
  --tint: #f4f7f5;
  --bg: #ffffff;
  --cta: #1f8f4e;        /* what to press next */
  --cta-hover: #19773f;
  --accent: #d9f0e3;
  --error: #b42318;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Anchored sections land below the sticky header. */
[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cta); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 72px 0; }
.tint { background: var(--tint); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.section-lead { color: var(--muted); max-width: 40em; margin-bottom: 2em; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--cta); margin-bottom: .75em; }

/* Buttons: what to press next is green and comes last; secondary is outlined. */
.button {
  display: inline-block; padding: 14px 24px; border-radius: 999px; border: 2px solid var(--cta);
  background: var(--cta); color: #fff; font-weight: 700; text-decoration: none; font-size: 1rem;
  cursor: pointer; text-align: center;
}
.button:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.button-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.button-light { background: #fff; color: var(--ink); border-color: #fff; }
.button-light:hover { background: var(--accent); border-color: var(--accent); }
.button-small { padding: 8px 16px; font-size: .9rem; }
.button-wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff; }
.header-nav { display: flex; gap: 20px; margin-left: auto; }
.header-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.header-nav a:hover { color: var(--cta); }

/* Hero */
.hero { padding: 64px 0 72px; background: linear-gradient(180deg, var(--tint), #fff); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 12em; }
.hero-checks { font-size: 1.05rem; margin-top: 1.5em; }
.hero-checks li { margin-bottom: .6em; }
.hero-checks strong { color: var(--ink); }
.center { text-align: center; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p:last-child { margin-bottom: 0; }
.option { border-top: 4px solid var(--cta); }
.fit { margin-top: 1em; padding-top: 1em; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.fit strong { color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 1em 0 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: .4em; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--cta); font-weight: 800; }

/* Pains */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 2em; }
.pain { border-left: 4px solid var(--accent); padding-left: 20px; }
.pain p { color: var(--muted); margin: 0; }

/* Example timeline */
.example { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--accent); }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--cta);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .time { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.timeline p { margin: 2px 0 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2em 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.steps p { color: var(--muted); }

/* Price */
.price-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch;
  max-width: 860px; margin: 2em auto 0; background: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 36px;
}
.price { font-size: 1.3rem; color: var(--muted); margin: 0 0 .5em; }
.price strong { font-size: clamp(2.6rem, 7vw, 3.6rem); color: var(--ink); letter-spacing: -.02em; }
.guarantee { background: var(--accent); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.guarantee-title { font-size: 1.35rem; font-weight: 800; color: var(--ink); margin-bottom: .4em; }
.guarantee p:last-child { margin: 0; }
.half-price { margin: 0 0 .6em; color: var(--ink); font-size: 1.1rem; }
.half-price del { color: var(--muted); font-size: 1.3rem; margin-right: 6px; text-decoration-thickness: 2px; }
.half-price strong { font-size: clamp(2rem, 5vw, 2.6rem); letter-spacing: -.02em; }
.center-actions { justify-content: center; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
summary { font-weight: 700; color: var(--ink); cursor: pointer; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Forms */
.contact { background: var(--ink); color: #fff; }
.contact h2 { color: #fff; }
.contact .lead { color: #d7e6e3; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.form-card { background: #fff; color: var(--text); border-radius: 20px; padding: 32px; box-shadow: 0 10px 40px rgba(15, 61, 58, .12); }
.form-title { font-size: 1.5rem; margin-bottom: .2em; }
.form-lead { color: var(--muted); margin-bottom: 1.2em; }
.form-or { text-align: center; margin: 16px 0 0; font-weight: 600; }
.privacy-hint { text-align: center; margin: 12px 0 0; }
form label { display: block; font-weight: 600; margin-bottom: 14px; }
input, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; color: var(--text);
  border: 1px solid #c9d3d0; border-radius: 10px; background: #fff;
}
input:focus, textarea:focus { outline: 3px solid var(--accent); border-color: var(--cta); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two label { margin-bottom: 0; }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: .9rem; color: var(--muted); margin: 6px 0 14px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 600; margin-bottom: 8px; }
/* Choices as chips: a selected choice is filled. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
form .chip { margin: 0; font-weight: 600; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid #c9d3d0; border-radius: 999px; cursor: pointer; font-size: .95rem; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { background: #fdecea; color: var(--error); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.notice { text-align: center; padding: 24px 8px; }
.notice h2, .notice h3 { color: var(--ink); }

/* Prose (privacy policy) */
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }

/* Call bar: always at hand on phones */
.call-bar { display: none; }

@media (max-width: 900px) {
  .cards.three, .pains { grid-template-columns: 1fr 1fr; }
  .hero-grid, .contact-grid, .price-card, .example { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .header-nav { display: none; }
  .header-row .button-small { display: none; } /* the call bar below takes over */
  .cards.three, .pains, .steps, .two { grid-template-columns: 1fr; }
  .center { text-align: left; }
  .two label { margin-bottom: 14px; }
  .price-card, .form-card { padding: 24px; }
  .actions .button { flex: 1 1 100%; }
  .call-bar {
    display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20;
    background: var(--cta); color: #fff; text-align: center; font-weight: 800; text-decoration: none;
    padding: 15px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  }
  body { padding-bottom: 76px; }
}
