/* ==============================================================
   Lidora website styles
   One file for the whole site. Change the colours here first:
   every colour on the site comes from these variables.
   ============================================================== */

:root {
  /* Brand colours */
  --teal:        #0E4A52;   /* main colour: buttons, headings, dark sections */
  --teal-dark:   #08343A;   /* darker teal for hover */
  --teal-soft:   #E6F0F1;   /* very light teal backgrounds */
  --coral:       #FF6B5A;   /* accent: the coral tile in the logo */
  --coral-dark:  #E95543;
  --lagoon:      #7FC4C9;   /* soft blue-green */
  --mist:        #F4F7F7;   /* page background for light sections */

  /* Text and lines */
  --ink:         #0B2A2E;   /* main text */
  --muted:       #4F6B6E;   /* secondary text */
  --line:        #D9E3E4;   /* borders */
  --white:       #FFFFFF;

  /* Shapes and spacing */
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 1px 2px rgba(11, 42, 46, .06), 0 8px 24px rgba(11, 42, 46, .07);
  --max:         1180px;     /* widest the content gets */

  /* Fonts */
  --font-head:   'Outfit', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }

/* Keyboard focus outline (for people using Tab) */
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding: 96px 0; }
.section-head { max-width: 760px; margin: 0 auto 48px; }
.section-lead { font-size: 19px; color: var(--muted); }
.eyebrow {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--coral); }
.accent { color: var(--coral); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-size: 17px; font-weight: 600;
  padding: 14px 24px; border-radius: 12px;
  text-decoration: none; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-coral:hover { background: var(--coral-dark); color: var(--ink); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal-soft); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 36px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 16px; }
.main-nav a:hover { color: var(--teal); }
.main-nav .nav-cta { color: var(--white); }
.menu-toggle, .menu-button { display: none; }   /* only shown on phones, see bottom */

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(127,196,201,.25), transparent 70%),
    var(--mist);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--teal); }
.lead { font-size: 20px; color: var(--muted); max-width: 540px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15px; }
.hero-points li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 6px; }

/* Screenshot in a browser frame, with a phone on top */
.hero-visual { position: relative; padding-bottom: 40px; }
.browser {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(11,42,46,.18);
  overflow: hidden;
  border: 1px solid var(--line);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #EEF3F3; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD8D9; }
.browser-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: var(--white); padding: 2px 12px; border-radius: 6px; }
.phone {
  position: absolute; right: -10px; bottom: 0; width: 30%;
  border: 6px solid var(--ink); border-radius: 26px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(11,42,46,.3);
  background: var(--white);
  aspect-ratio: 9 / 17;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Works with ---------- */
.works-with { padding: 28px 0; border-bottom: 1px solid var(--line); }
.works-with .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.works-with p { margin: 0; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.works-with ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.works-with li { font-size: 15px; font-weight: 500; padding: 6px 14px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }

/* ---------- Problem: three points ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.trio-item { padding: 28px; border-radius: var(--radius-lg); background: var(--mist); }
.trio-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 12px; background: var(--teal); color: var(--white);
  font-family: var(--font-head); font-weight: 700;
}
.trio-item:nth-child(2) .trio-num { background: var(--coral); border-radius: 50%; color: var(--ink); }
.trio-item p { color: var(--muted); margin: 0; }

/* ---------- Features ---------- */
.features { background: var(--mist); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--white); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin: 0; }
.feature-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--teal-soft); margin-bottom: 18px; }
.feature-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-extras { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; color: var(--muted); }
.feature-extras li::before { content: "✓"; color: var(--coral-dark); font-weight: 700; margin-right: 6px; }

/* ---------- Spotlights (screenshot + text) ---------- */
.spotlight { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
.spotlight + .spotlight { margin-top: 110px; }
.spotlight.reverse .spotlight-text { order: 2; }
.spotlight-text p { color: var(--muted); }
.spotlight-text .eyebrow { color: var(--coral-dark); }
.spotlight-img img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E4A52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Industries ---------- */
.industries { background: var(--mist); }
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry { background: var(--white); border-radius: var(--radius); padding: 26px; border-left: 5px solid var(--teal); }
.industry:nth-child(2) { border-left-color: var(--coral); }
.industry:nth-child(3) { border-left-color: var(--lagoon); }
.industry p { color: var(--muted); margin: 0; }
.industry-other { background: transparent; border: 2px dashed var(--line); border-left: 2px dashed var(--line); }

/* ---------- For agencies (dark section) ---------- */
.agencies { background: var(--teal); color: var(--white); }
.agencies-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.agencies h2 { color: var(--white); }
.agencies-text > p { color: #CFE3E5; font-size: 18px; }
.ticks-light li::before { background-color: rgba(255,255,255,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B5A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ticks-light { margin-bottom: 32px; color: #E3EEEF; }
.ticks-light b { color: var(--white); }

/* The drawing of the control panel */
.panel-mock { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.pm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pm-title { font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.pm-btn { font-size: 13px; font-weight: 600; background: var(--teal); color: var(--white); padding: 7px 12px; border-radius: 9px; }
.pm-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); }
.pm-av { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--teal-soft); color: var(--teal); font-weight: 600; font-size: 14px; flex: none; }
.pm-name { flex: 1; font-weight: 600; font-size: 15px; line-height: 1.3; }
.pm-name small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.pm-chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pm-chip.ok { background: #E3F4EA; color: #1E7A45; }
.pm-chip.warn { background: #FFF1D6; color: #8A5A00; }
.pm-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: right; }

/* ---------- How it works ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: step; position: relative; padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 50%; background: var(--coral); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
}
.steps p { color: var(--muted); margin: 0; }

/* ---------- Security ---------- */
.security { background: var(--mist); padding: 72px 0; }
.security-inner h2 { text-align: center; margin-bottom: 36px; }
.security-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.security-list li { background: var(--white); border-radius: var(--radius); padding: 22px; }
.security-list b { display: block; font-family: var(--font-head); font-size: 18px; margin-bottom: 4px; color: var(--teal); }
.security-list span { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 22px 40px 22px 0; position: relative;
  font-family: var(--font-head); font-size: 20px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 28px; color: var(--coral-dark); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 700px; }

/* ---------- Call to action band ---------- */
.cta { background: var(--teal); color: var(--white); padding: 88px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 48px; opacity: .14; }
.cta::before { background: var(--lagoon); left: -60px; top: -60px; }
.cta::after { background: var(--coral); border-radius: 50%; right: -50px; bottom: -70px; opacity: .9; }
.cta h2 { color: var(--white); max-width: 760px; margin: 0 auto 12px; }
.cta p { color: #CFE3E5; font-size: 19px; }
.center-buttons { justify-content: center; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { display: block; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
a.contact-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.contact-card b { display: block; font-family: var(--font-head); font-size: 18px; color: var(--teal); margin-bottom: 4px; }
.contact-card span { color: var(--muted); font-size: 15px; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9CBCD; padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: #DCE8E9; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { max-width: 320px; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: flex-start; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); color: var(--teal); }
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal p, .legal li { color: #2E4B4F; }
.legal .updated { color: var(--muted); }

/* ==============================================================
   TABLETS (screens narrower than 980px)
   ============================================================== */
@media (max-width: 980px) {
  .section { padding: 72px 0; }
  .hero-inner, .spotlight, .agencies-inner { grid-template-columns: 1fr; gap: 40px; }
  .spotlight.reverse .spotlight-text { order: 0; }
  .feature-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .security-list, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .trio, .steps { grid-template-columns: 1fr; }
  .phone { width: 26%; right: 4px; }

  /* Mobile menu: the ☰ button shows, the links drop down when it's ticked */
  .menu-button { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; cursor: pointer; }
  .menu-button span { display: block; height: 2px; width: 24px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .main-nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(11,42,46,.08);
  }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { margin-top: 14px; border-bottom: 0; padding: 12px; }
  .menu-toggle:checked ~ .main-nav { display: flex; }
  .menu-toggle:checked + .menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked + .menu-button span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked + .menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==============================================================
   PHONES (screens narrower than 600px)
   ============================================================== */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .lead, .section-lead { font-size: 17px; }
  .hero-buttons .btn { width: 100%; }
  .feature-grid, .industry-grid, .security-list, .contact-grid { grid-template-columns: 1fr; }
  .spotlight + .spotlight { margin-top: 64px; }
  .phone { width: 34%; border-width: 4px; border-radius: 18px; }
  .faq summary { font-size: 18px; }
  .footer-bottom { flex-direction: column; }
}
