/* smartrelation.se – same typefaces and brand colours as the app. Mobile first. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Outfit Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --font-sans: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit Variable', 'Inter Variable', sans-serif;

  --bg: hsl(220 20% 97%);
  --surface: #fff;
  --text: hsl(220 25% 10%);
  --muted: hsl(220 10% 42%);
  --border: hsl(220 16% 88%);
  --primary: hsl(220 65% 48%);
  --primary-hover: hsl(220 65% 42%);
  --primary-soft: hsl(220 65% 48% / 0.08);
  --family: hsl(270 45% 52%);
  --gradient: linear-gradient(135deg, var(--primary), var(--family));
  --shadow: 0 1px 2px hsl(220 25% 10% / 0.06), 0 12px 32px -12px hsl(220 25% 10% / 0.18);
  --radius: 16px;
  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(220 24% 8%);
    --surface: hsl(220 22% 12%);
    --text: hsl(220 18% 94%);
    --muted: hsl(220 10% 65%);
    --border: hsl(220 14% 22%);
    --primary: hsl(220 68% 62%);
    --primary-hover: hsl(220 68% 68%);
    --primary-soft: hsl(220 68% 62% / 0.14);
    --family: hsl(270 48% 64%);
    --shadow: 0 1px 2px hsl(0 0% 0% / 0.4), 0 12px 32px -12px hsl(0 0% 0% / 0.6);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 16px/1.6 var(--font-sans);
  color: var(--text);
  background: var(--bg);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 7vw, 3.6rem);
}
h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
}
h3 {
  font-size: 1.1rem;
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}
.container.narrow {
  max-width: 760px;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
}
.eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-link {
  font-weight: 600;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.button:hover {
  text-decoration: none;
}
.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px -8px var(--primary);
}
.button-primary:hover {
  background: var(--primary-hover);
}
.button-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}
.button-ghost:hover {
  background: var(--primary-soft);
}
.button-large {
  min-height: 52px;
  padding: 0 1.5rem;
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.logo:hover {
  text-decoration: none;
}
.main-nav {
  display: none;
  gap: 1.5rem;
  font-weight: 500;
}
.main-nav a {
  color: var(--muted);
}
.main-nav a:hover,
.main-nav a[aria-current] {
  color: var(--text);
  text-decoration: none;
}
.header-actions {
  display: flex;
  gap: 0.5rem;
}
.header-actions .button-ghost {
  display: none;
}
@media (min-width: 640px) {
  .header-actions .button-ghost {
    display: inline-flex;
  }
}
@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
}

/* Hero */
.hero {
  padding: 3rem 0 2rem;
  background:
    radial-gradient(60% 50% at 20% 0%, var(--primary-soft), transparent 70%),
    radial-gradient(50% 40% at 90% 20%, hsl(270 45% 52% / 0.1), transparent 70%);
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}
.hero h1 {
  margin-bottom: 1rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.trust-row svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.hero-visual {
  display: flex;
  justify-content: center;
}
@media (min-width: 900px) {
  .hero {
    padding: 5rem 0 4rem;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* Phone frame around screenshots */
.phone {
  width: min(300px, 80vw);
  padding: 10px;
  border-radius: 40px;
  background: var(--text);
  box-shadow: var(--shadow);
}
.phone img {
  border-radius: 30px;
  background: var(--surface);
}
.phone-small {
  width: min(260px, 70vw);
  margin-inline: auto;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}
@media (min-width: 900px) {
  .section {
    padding: 5.5rem 0;
  }
}
.section-head {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .order-last {
    order: 2;
  }
}

/* Smart add */
.smart {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.examples {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0;
  list-style: none;
}
.examples li {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 500;
}
.examples li::before {
  content: '“';
  color: var(--primary);
}
.examples li::after {
  content: '”';
  color: var(--primary);
}

/* Feature cards */
.feature-grid {
  display: grid;
  gap: 1rem;
  list-style: none;
}
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-grid.four {
    grid-template-columns: repeat(4, 1fr);
  }
}
.feature-card,
.card {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.feature-card p,
.feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.feature-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
}
.feature-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  max-width: 760px;
  margin-inline: auto;
}
.feature-row {
  display: flex;
  gap: 1.25rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.feature-row .feature-icon {
  flex-shrink: 0;
  margin: 0;
}
.feature-row h2 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

/* Check list */
.check-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.25rem 0;
  list-style: none;
}
.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.check-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--primary);
}

/* Steps */
.steps {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.step-grid {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  counter-reset: steps;
}
@media (min-width: 640px) {
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .step-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step-number {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.35;
}
.step-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Install */
.install-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .install-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card ol {
  padding-left: 1.25rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.6rem;
}
.faq-list details {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0 1.2rem;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2rem 1rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  position: relative;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--primary);
}
.faq-list details[open] summary::after {
  content: '–';
}
.faq-list details p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

/* CTA */
.cta-box {
  padding: 2.5rem 1.5rem;
  border-radius: 24px;
  background: var(--gradient);
  color: #fff;
  text-align: center;
}
.cta-box h2 {
  color: #fff;
}
.cta-box p {
  color: hsl(0 0% 100% / 0.85);
  max-width: 520px;
  margin-inline: auto;
}
.cta-box .button-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}
.cta-box .button-primary:hover {
  background: hsl(0 0% 96%);
}
@media (min-width: 900px) {
  .cta-box {
    padding: 4rem 2rem;
  }
}

/* Page intro (subpages) */
.page-intro {
  padding: 3rem 0 1rem;
}
@media (min-width: 900px) {
  .page-intro {
    padding: 4.5rem 0 1.5rem;
  }
}
.page-intro .lead {
  max-width: 640px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  background: var(--surface);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
}
.footer-grid nav {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.footer-grid nav a {
  color: var(--muted);
}
.footer-tagline {
  margin-top: 0.75rem;
  color: var(--muted);
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Photos */
picture {
  display: contents;
}
.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-frame {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  max-width: 440px;
}
.photo-frame.wide {
  aspect-ratio: 16 / 7;
  max-width: none;
  margin-top: 2rem;
}
.hero-visual.with-photo {
  position: relative;
}
.hero-visual.with-photo .photo {
  border-radius: 28px;
  aspect-ratio: 4 / 5;
  height: auto;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.hero-visual.with-photo .phone {
  position: absolute;
  right: -4%;
  bottom: -8%;
  width: 46%;
  min-width: 180px;
}
@media (max-width: 899px) {
  .hero-visual.with-photo {
    margin: 1.5rem auto 0;
    max-width: 420px;
  }
}
.who-card.has-photo {
  padding-top: 0;
  overflow: hidden;
}
.who-card .photo {
  aspect-ratio: 3 / 2;
  height: auto;
  margin: 0 -1.4rem 1.25rem;
  width: calc(100% + 2.8rem);
}
.cta-box.cta-photo {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.cta-box.cta-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(220 65% 30% / 0.85), hsl(270 45% 35% / 0.8));
}
.cta-box.cta-photo > * {
  position: relative;
}

/* Who it is for */
.who-grid {
  display: grid;
  gap: 1rem;
  list-style: none;
}
@media (min-width: 900px) {
  .who-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.who-card {
  display: flex;
  flex-direction: column;
}
.who-card > p {
  color: var(--muted);
}
.who-card .button {
  margin-top: auto;
  align-self: flex-start;
}
.check-list.compact {
  gap: 0.55rem;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.95rem;
}
.check-list.compact svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

/* Pricing */
.pricing {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.pricing-grid {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  margin: 0 auto 2rem;
}
@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pricing-card {
  background: var(--bg);
}
.pricing-now {
  border: 2px solid var(--primary);
  background: var(--surface);
}
.pricing-label {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pricing-price {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pricing-now .pricing-price {
  color: var(--primary);
}
.pricing .center + .center {
  margin-top: 0.75rem;
}

/* Inline CTA band */
.cta-inline {
  padding: 1.25rem 0;
  background: var(--primary-soft);
  border-block: 1px solid var(--border);
}
.cta-inline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cta-inline-row p {
  margin: 0;
  font-weight: 500;
}

/* Full FAQ page */
.faq-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.faq-toc a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}
.faq-toc a:hover {
  border-color: var(--primary);
  text-decoration: none;
}
.faq-group {
  margin-bottom: 2.5rem;
  scroll-margin-top: 5rem;
}
.faq-group h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* About */
.about-block {
  margin-bottom: 2.25rem;
}
.about-block h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.about-block p {
  color: var(--muted);
  font-size: 1.05rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
