/* ===================== AUBIMAT landing — styles ===================== */
:root {
  --navy: #1c3f5f;
  --navy-deep: #14314a;
  --cyan: #29b6c8;
  --cyan-deep: #1f97a8;
  --ink: #16232e;
  --muted: #5c6c78;
  --line: #e3e9ee;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --card: #ffffff;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 49, 74, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 49, 74, 0.14);
  --maxw: 1120px;
  --grad: linear-gradient(135deg, var(--navy) 0%, var(--cyan) 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef3;
    --muted: #9fb0bd;
    --line: #24333f;
    --bg: #0f1a22;
    --bg-soft: #13212b;
    --card: #16242f;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
a { color: var(--cyan-deep); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 8px 20px rgba(41, 182, 200, 0.35); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(41, 182, 200, 0.5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-deep); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand-logo { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); }
.site-nav a:not(.btn) { color: var(--muted); font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--ink); }

/* ---------- Layout ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 2rem); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 .5rem; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
}
.badge {
  display: inline-block; padding: .35rem .85rem; border-radius: 999px;
  background: color-mix(in srgb, var(--cyan) 15%, transparent);
  color: var(--cyan-deep); font-weight: 600; font-size: .85rem; margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin: 0 0 1rem; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin: 0 0 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.hero-note { color: var(--muted); font-size: .9rem; margin: 0; }
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: min(360px, 80%); filter: drop-shadow(0 24px 40px rgba(20, 49, 74, 0.18));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }

/* ---------- Tools grid ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.tool-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tool-card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-soft); margin-bottom: .9rem;
}
.tool-card .icon img { width: 32px; height: 32px; }
.tool-card h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.tool-card .disc { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cyan-deep); margin-bottom: .5rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Pricing ---------- */
.pricing { display: flex; justify-content: center; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 2.5rem; max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow-lg);
}
.price-card h2 { margin: 0 0 .5rem; }
.price { font-size: 3.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.price .currency { font-size: 1.6rem; vertical-align: super; }
/* The gradient fill is clipped to the text, so the period needs an explicit
   fill colour to escape it and stay readable at this size. */
.price .period { font-size: 1.1rem; font-weight: 600; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.price-sub { color: var(--muted); margin: .4rem 0 1.4rem; }
.price-list { list-style: none; padding: 0; margin: 0 0 1.6rem; text-align: left; }
.price-list li { padding: .5rem 0 .5rem 1.9rem; position: relative; border-bottom: 1px solid var(--line); }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan-deep); font-weight: 800; }
.price-fineprint { color: var(--muted); font-size: .82rem; margin: .9rem 0 0; }

/* ---------- Account / Auth ---------- */
.account { display: flex; justify-content: center; }
.auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 2rem; max-width: 480px; width: 100%; box-shadow: var(--shadow-lg);
}
.auth-tabs { display: flex; gap: .3rem; background: var(--bg-soft); padding: .3rem; border-radius: 12px; margin-bottom: 1.5rem; }
.auth-tab {
  flex: 1; padding: .6rem; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font-weight: 600; font-size: .95rem; cursor: pointer;
}
.auth-tab.is-active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.auth-form { display: grid; gap: .9rem; }
.auth-form label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--ink); }
.auth-form input[type=text], .auth-form input[type=email], .auth-form input[type=password] {
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font-size: 1rem; font-weight: 400;
}
.auth-form input:focus { outline: 2px solid color-mix(in srgb, var(--cyan) 55%, transparent); border-color: var(--cyan); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.check { flex-direction: row !important; display: flex !important; align-items: flex-start; gap: .55rem; font-weight: 400 !important; color: var(--muted); font-size: .85rem; }
.check input { margin-top: .25rem; }
.auth-msg { margin: .2rem 0 0; font-size: .9rem; min-height: 1.2em; }
.auth-msg.ok { color: var(--cyan-deep); }
.auth-msg.err { color: #d64550; }
.account-panel { text-align: center; }
.account-info { display: grid; gap: .6rem; margin: 1.2rem 0; }
.account-info div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.account-info dt { color: var(--muted); font-size: .9rem; margin: 0; }
.account-info dd { margin: 0; font-weight: 600; }
.is-hidden { display: none !important; }
/* The `hidden` attribute must beat the display rules above (e.g. .account) */
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 2rem;
  padding: 2.5rem clamp(1rem, 4vw, 2rem); text-align: center; color: var(--muted);
  display: grid; gap: .8rem; place-items: center;
}
.footer-logo { height: 34px; opacity: .9; }
.site-footer nav { display: flex; gap: 1.2rem; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { width: 200px; }
  .site-nav a:not(.btn) { display: none; }
  .row-2 { grid-template-columns: 1fr; }
}
