/* Molaris site. Tokens follow the app (croatian_dental_saas frontend/web/src/app/globals.css). */

@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/figtree-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/figtree-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/figtree-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/figtree-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --band: #F4F4F5;
  --surface: #FFFFFF;
  --ink: #18181B;
  --muted: #52525B;
  --line: #E4E4E7;
  --primary: #0E5C66;
  --primary-fg: #FFFFFF;
  --primary-text: #0E5C66;
  --primary-tint: #E6F0F1;
  --frame-bar: #F4F4F5;
  --shadow: 0 24px 48px -24px rgb(14 92 102 / 0.38);
  --accent: #F59E0B;
  --dark-bg: #18181B;
  --dark-ink: #FAFAFA;
  --dark-muted: #B4B4BC;
  --dark-line: #34343A;
  --dark-bar: #26262A;
  --dark-primary-text: #6FB3BB;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", var(--font-text);
  --radius: 12px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --band: #19191B;
    --surface: #1C1C1E;
    --ink: #FAFAFA;
    --muted: #A1A1AA;
    --line: #2E2E33;
    --primary: #1C7A85;
    --primary-fg: #FFFFFF;
    --primary-text: #6FB3BB;
    --primary-tint: #16292B;
    --frame-bar: #232326;
    --shadow: 0 24px 48px -24px rgb(0 0 0 / 0.75);
    --dark-bg: #0F2426;
    --dark-muted: #B3C4C6;
    --dark-line: #24474B;
    --dark-bar: #1A3437;
  }
}

*, *::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(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-text);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary-text); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 6.6vw, 4.25rem); line-height: 1.04; max-width: 14ch; }
h1 .accent { color: var(--primary-text); }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.nowrap { white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--primary); color: var(--primary-fg); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.site-header .logo { display: inline-flex; min-height: 44px; align-items: center; }
.site-header .logo img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav .nav-link {
  display: none; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 10px 12px; border-radius: 8px; min-height: 44px; align-items: center;
}
.site-nav .nav-link:hover { color: var(--ink); background: var(--band); }
@media (min-width: 760px) { .site-nav .nav-link { display: inline-flex; } .site-nav .btn { margin-left: 8px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--primary); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .actions { flex-direction: column; align-items: flex-start; } }

/* Hero */
.hero { padding: 32px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
/* Soft teal panel behind the hero screenshot; it runs off the right edge (clipped by .hero). */
.hero-media { position: relative; padding: 20px 0 20px 20px; }
.hero-media::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: -50vw;
  background: var(--primary-tint); border-radius: 24px 0 0 24px;
}
.hero-media .frame { position: relative; }
/* The staff app on a phone, in front of the calendar's bottom-right (narrow) or bottom-left (wide) corner. */
.hero-media { padding-bottom: 44px; }
.phone.hero-phone {
  position: absolute; right: 12px; bottom: 0; margin: 0; width: 38%; min-width: 120px; max-width: 168px;
  border-width: 6px; border-radius: 24px; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgb(0 0 0 / 0.45);
}
.phone.hero-phone img { border-radius: 18px; }
/* On the dark page a black bezel would vanish: lift it to a graphite tone with a light rim. */
@media (prefers-color-scheme: dark) {
  .phone.hero-phone { border-color: #3A3A40; background: #3A3A40; box-shadow: 0 0 0 1px #55555D, 0 24px 48px -20px rgb(0 0 0 / 0.8); }
}
.lead { font-size: clamp(1.1rem, 2.1vw, 1.3rem); color: var(--muted); max-width: 40ch; margin-bottom: 28px; }
@media (min-width: 960px) {
  .hero { padding: 48px 0 96px; }
  .hero .wrap { grid-template-columns: 5fr 7fr; gap: 56px; }
  .hero-media { padding: 40px 0 40px 40px; }
  .hero-media .frame { width: calc(100% + 96px); max-width: none; }
  .hero-media { padding-bottom: 56px; }
  .phone.hero-phone { left: -32px; right: auto; bottom: -32px; width: 220px; max-width: none; border-width: 8px; border-radius: 32px; }
  .phone.hero-phone img { border-radius: 24px; }
}

/* Screenshot frames */
.frame {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.frame::before {
  content: ""; display: block; height: 22px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14px 11px, var(--line) 4px, transparent 4.5px),
    radial-gradient(circle at 28px 11px, var(--line) 4px, transparent 4.5px),
    radial-gradient(circle at 42px 11px, var(--line) 4px, transparent 4.5px),
    var(--frame-bar);
}
.phone {
  margin: 0 auto; max-width: 300px; border: 10px solid #18181B; border-radius: 40px; overflow: hidden;
  background: #18181B; box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.phone img { border-radius: 30px; }

/* Benefits strip */
.benefits { background: var(--band); border-block: 1px solid var(--line); padding: 48px 0; }
.benefits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 760px) { .benefits ul { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.benefits .tile {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 12px; background: var(--primary-tint); color: var(--primary-text); box-shadow: inset 0 0 0 1px rgb(14 92 102 / 0.12);
}
.benefits h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.benefits p { color: var(--muted); margin: 0; }

/* Labels */
.label {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary-text); margin-bottom: 12px;
}
.label::before { content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--accent); }

/* Feature rows */
.features { padding: 72px 0 24px; }
.features > .wrap > h2 { max-width: 22ch; margin-bottom: 48px; }
.feature { display: grid; gap: 28px; align-items: center; padding: 0 0 72px; }
.feature h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.feature p { color: var(--muted); max-width: 52ch; }
@media (min-width: 960px) {
  .feature { grid-template-columns: 5fr 7fr; gap: 64px; padding-bottom: 96px; }
  .feature.reverse { grid-template-columns: 7fr 5fr; }
  .feature.reverse .feature-text { order: 2; }
  .feature.feature-phone { grid-template-columns: 7fr 5fr; }
  .feature.feature-phone.reverse { grid-template-columns: 5fr 7fr; }
}
/* CEZIH row as a dark band across the page */
.band-dark {
  --ink: var(--dark-ink); --muted: var(--dark-muted); --line: var(--dark-line); --surface: #1C1C1E;
  --frame-bar: var(--dark-bar); --primary-text: var(--dark-primary-text);
  --shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8);
  background: var(--dark-bg); color: var(--ink); padding: 72px 0; margin-bottom: 72px;
}
.band-dark .feature { padding-bottom: 0; }
@media (min-width: 960px) { .band-dark { padding: 96px 0; margin-bottom: 96px; } }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin: 0 0 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--primary-text); border-bottom: 2.5px solid var(--primary-text); transform: rotate(-45deg);
}

/* Plain sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section.band { background: var(--band); }
.two { display: grid; gap: 24px 64px; }
@media (min-width: 960px) { .two { grid-template-columns: 5fr 7fr; } }
.two .intro p { color: var(--muted); }

/* Contact */
.contact-mail { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.1rem); letter-spacing: -0.02em; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card p { margin: 0 0 4px; }
.contact-card .contact-mail { display: inline-block; margin: 8px 0 16px; }

/* Legal pages */
.prose { padding: 32px 0 72px; max-width: 72ch; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); max-width: none; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose dl { display: grid; gap: 2px 24px; margin: 0 0 1.5em; }
@media (min-width: 640px) { .prose dl { grid-template-columns: max-content 1fr; } }
.prose dt { font-weight: 600; }
.prose dd { margin: 0 0 12px; color: var(--muted); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; }
.site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; }
