/* solicale.com — Solicale brand (brand book v1.0, 2026-11-03). No framework, no build step. */

:root {
  --ink: #1F2A44;
  --coral: #FF6B57;        /* logo and decoration only: fails as text on light backgrounds */
  --coral-deep: #C2412D;   /* coral text, links and focus rings on light backgrounds */
  --coral-tint: #FFE9E4;
  --paper: #F6F5F2;
  --white: #FFFFFF;
  --slate: #5D6478;
  --line: #E3E1DC;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 27, 45, .06), 0 20px 48px rgba(20, 27, 45, .10);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
}

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

a { color: var(--coral-deep); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 10;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { max-width: 1120px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #2C3A5C; color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { padding: 11px 18px; border-radius: 10px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .bar {
  max-width: 1200px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; flex: none; }
.logo svg { width: 136px; height: 38px; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--coral-deep); }
.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- Sections ---------- */
.section { padding: 112px 32px; }
.section-paper { background: var(--paper); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 56px; }
.h2 { font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: 18px; color: var(--slate); }
.muted { color: var(--slate); }

/* Hero */
.hero { padding: 96px 32px 56px; text-align: center; }
.hero .wrap { max-width: 860px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.pill {
  background: var(--coral-tint); color: var(--ink);
  font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 99px;
}
.hero h1 { font-size: 60px; line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
.hero .lead { font-size: 20px; max-width: 680px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.meta { font-size: 14px; color: var(--slate); }

/* Hero screenshot on a white-to-Paper band */
.showcase { background: linear-gradient(var(--white) 0, var(--white) 120px, var(--paper) 120px); padding: 0 32px 96px; }
.frame {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow);
}
.frame img { width: 100%; border-radius: 8px; }
.caption { margin-top: 16px; text-align: center; font-size: 14px; color: var(--slate); }

/* Features */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.card h3 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.card p { color: var(--slate); }
.card .note { font-size: 13px; font-weight: 600; }
.icon-tile {
  width: 48px; height: 48px; border-radius: 12px; background: var(--coral-tint);
  display: flex; align-items: center; justify-content: center;
}

/* Theme section */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.split-text { display: flex; flex-direction: column; gap: 20px; }
.dots { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dots li { display: flex; gap: 12px; align-items: baseline; }
.dots li::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 99px;
  background: var(--coral); transform: translateY(-2px);
}
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 48px rgba(20, 27, 45, .12); }
.shot img { width: 100%; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.faq dt { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.faq dd { color: var(--slate); }

/* Closing call to action */
.cta-section { padding: 0 32px 112px; }
.cta-band {
  background: var(--paper); border-radius: 24px; padding: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.cta-band .text { display: flex; flex-direction: column; gap: 8px; max-width: 600px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 64px 32px 40px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.footer-brand svg { width: 122px; height: 34px; }
.footer-brand p { color: var(--slate); font-size: 15px; }
.footer-nav { display: flex; gap: 72px; flex-wrap: wrap; font-size: 15px; }
.footer-nav div { display: flex; flex-direction: column; gap: 10px; }
.footer-nav .heading { font-weight: 700; }
.footer-nav a { color: var(--ink); overflow-wrap: anywhere; }
.footer-nav a:hover { color: var(--coral-deep); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--slate);
}

/* ---------- Legal pages (privacy, EULA) ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 32px 96px; }
.legal h1 { font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .general-tab { margin-top: 40px; }
.legal h2 { font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.legal .general-tab > div { color: var(--ink); }

/* ---------- Documentation (/docs/) ---------- */
.docs { max-width: 1200px; margin: 0 auto; padding: 48px 32px 96px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.docs-nav { position: sticky; top: 24px; font-size: 15px; }
.docs-nav .heading { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.docs-nav ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.docs-nav a:hover { background: var(--paper); color: var(--ink); }
.docs-nav a[aria-current="page"] { background: var(--coral-tint); font-weight: 600; }
.docs-nav .pdf { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.docs-nav .pdf a { padding-left: 12px; color: var(--coral-deep); }

.doc { max-width: 720px; }
.doc > * + * { margin-top: 16px; }
.doc h1 { font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.doc .lead { margin-top: 12px; }
.doc h2 { font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; margin-top: 56px; scroll-margin-top: 24px; }
.doc h3 { font-size: 19px; line-height: 1.35; font-weight: 700; margin-top: 32px; scroll-margin-top: 24px; }
.doc ul, .doc ol { padding-left: 24px; }
.doc li + li { margin-top: 6px; }
.doc code, .doc kbd { font: 500 .92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.doc .ui { font-weight: 600; }
.doc figure { margin-top: 24px; }
.doc figure img { width: 100%; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(20, 27, 45, .08); }
.doc figcaption { margin-top: 10px; font-size: 14px; color: var(--slate); }
.doc .callout { background: var(--coral-tint); border-radius: 12px; padding: 16px 20px; }
.doc .callout.info { background: var(--paper); }
.doc .callout p + p { margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; background: var(--paper); }
.doc .table-wrap { overflow-x: auto; }
.doc-cards { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc-cards li + li { margin-top: 0; }
.doc-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 20px; color: var(--ink); text-decoration: none; }
.doc-cards a:hover { border-color: var(--ink); color: var(--ink); }
.doc-cards strong { font-size: 17px; }
.doc-cards span { color: var(--slate); font-size: 15px; }
.doc-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px !important; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.doc-pager a { font-weight: 600; text-decoration: none; }
.doc-pager a:hover { text-decoration: underline; }

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
  .docs-nav { position: static; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
}

@media (max-width: 760px) {
  .site-header .bar { padding: 12px 16px; flex-wrap: wrap; gap: 0; }
  .logo svg { width: 114px; height: 32px; }
  .js .menu-toggle { display: flex; }
  .site-nav {
    width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 4px;
  }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }
  .js .site-nav:not(.open) { display: none; }

  .section { padding: 56px 16px; }
  .section-head { margin-bottom: 24px; gap: 8px; }
  .h2 { font-size: 28px; line-height: 1.2; }
  .lead { font-size: 17px; }

  .hero { padding: 48px 16px 32px; text-align: left; }
  .hero .wrap { align-items: stretch; gap: 18px; }
  .pill { align-self: flex-start; font-size: 13px; }
  .hero h1 { font-size: 36px; line-height: 1.1; }
  .hero .lead { font-size: 17px; }
  .actions { flex-direction: column; gap: 10px; }
  .meta { text-align: center; font-size: 13px; }

  .showcase { background: var(--paper); padding: 32px 16px 48px; }
  .frame { padding: 6px; border-radius: 14px; }
  .caption { font-size: 13px; margin-top: 12px; }

  .card { padding: 24px; gap: 10px; }
  .icon-tile { width: 44px; height: 44px; }

  .faq { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .faq dt { font-size: 16px; margin-bottom: 6px; }

  .cta-section { padding: 0 16px 56px; }
  .cta-band { padding: 28px 22px; border-radius: 18px; flex-direction: column; align-items: stretch; gap: 14px; }
  .cta-band h2 { font-size: 24px; line-height: 1.25; }

  .site-footer { padding: 40px 16px 32px; }
  .site-footer .wrap { gap: 28px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-nav div { gap: 4px; }
  .footer-nav a { padding: 6px 0; }
  .footer-bottom { flex-direction: column; gap: 8px; padding-top: 18px; }

  .docs { padding: 24px 16px 64px; }
  .doc h1 { font-size: 30px; }
  .doc h2 { font-size: 22px; margin-top: 44px; }
  .doc h3 { font-size: 18px; }
  .doc-cards { grid-template-columns: minmax(0, 1fr); }

  .legal { padding: 40px 16px 64px; }
  .legal h1 { font-size: 30px; }
  .legal h2 { font-size: 19px; }
}

/* ---------- Print (also used to build /doc/documentation.pdf) ---------- */
@media print {
  .skip-link, .menu-toggle, .site-nav, .docs-nav, .doc-pager, .site-footer nav { display: none !important; }
  .site-header { border: 0; }
  .docs { display: block; padding: 0; }
  .doc { max-width: none; }
  .doc h2, .doc h3 { break-after: avoid; }
  .doc figure, .doc .callout, .doc table { break-inside: avoid; }
  .doc figure img { box-shadow: none; }
  a { color: var(--ink); }
}
