/* SEAgent's public website (app/index.php). The brand's colours and type (the SEAgent brand identity): navy leads, teal
   answers, mint is for Claude; Poppins for headings, Inter for text. Teal as text uses the deeper teal-ink */
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
	--navy: #14215e;
	--navy-deep: #0b1235;
	--teal: #14c49d;
	--teal-ink: #0b7f66;
	--mint: #7cf0d2;
	--ink: #14215e;
	--muted: #5b6272;
	--line: #d5dae5;
	--surface: #ffffff;
	--surface-alt: #f3f5f9;
	--display: "Poppins", "Segoe UI", system-ui, sans-serif;
	--body: "Inter", "Segoe UI", system-ui, sans-serif;
	--radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.front {
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.front img { max-width: 100%; height: auto; }
.front a { color: var(--teal-ink); }
.front a:focus-visible, .front button:focus-visible, .front summary:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 2px; border-radius: 4px; }
.front h1, .front h2, .front h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0 0 .5em; }
.front h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.front h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.front h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 600; }
.front p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap-narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff !important; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 12px; }

.eyebrow { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 10px !important; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.section-lead { font-size: 1.08rem; color: var(--muted); max-width: 44em; }

/* buttons */
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 24px; border-radius: 10px; border: 2px solid var(--navy);
	background: var(--navy); color: #fff !important; font-family: var(--display); font-weight: 600; font-size: 1rem;
	text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.button:hover { background: #0f1947; border-color: #0f1947; }
.button-quiet { background: transparent; color: var(--navy) !important; }
.button-quiet:hover { background: var(--surface-alt); border-color: var(--navy); }
.button-light { background: var(--teal); border-color: var(--teal); color: var(--navy-deep) !important; }
.button-light:hover { background: var(--mint); border-color: var(--mint); }
.button-small { padding: 8px 16px; font-size: .92rem; }
.button-wide { width: 100%; }
@media (prefers-reduced-motion: no-preference) { .button:hover { transform: translateY(-1px); } }

/* header */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; flex-wrap: wrap; }
.site-logo img { display: block; width: 180px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a:not(.button) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.site-nav a:not(.button):hover { color: var(--teal-ink); }

/* hero */
.hero { background: var(--navy-deep); color: #fff; padding: 72px 0 84px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--teal); }
.hero .lead { color: #c9d0e0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero .button { background: var(--teal); border-color: var(--teal); color: var(--navy-deep) !important; }
.hero .button:hover { background: var(--mint); border-color: var(--mint); }
.hero .button-quiet { background: transparent; border-color: #4a5893; color: #fff !important; }
.hero .button-quiet:hover { background: rgba(255, 255, 255, .06); border-color: #fff; }
.hero-note { color: #a7b0c2; font-size: .95rem; }

/* the product picture */
.hero-demo { background: #fff; color: var(--ink); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); min-width: 0; }
.demo-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo-bar em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.demo-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.demo-figures div { background: var(--surface-alt); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.demo-figures small { color: var(--muted); font-size: 12px; }
.demo-figures strong { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.demo-figures .up { color: var(--teal-ink); font-size: 12px; font-weight: 600; }
.demo-chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin: 16px 2px; border-bottom: 1px solid var(--line); }
.demo-chart i { flex: 1; background: var(--teal); border-radius: 4px 4px 0 0; opacity: .85; }
.demo-chart i:last-child { background: var(--navy); opacity: 1; }
.demo-insight { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.demo-insight strong { display: block; font-family: var(--display); font-weight: 600; margin: 4px 0; }
.demo-insight p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.demo-claude { display: inline-block; background: var(--mint); color: var(--navy-deep); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; }

/* sections */
.section { padding: 88px 0; }
.section-tint { background: var(--surface-alt); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature p { color: var(--muted); margin: 0; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 24%; background: var(--navy); color: var(--mint); font-size: 22px; margin-bottom: 16px; }
.feature-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.feature-wide > div { background: var(--navy); color: #c9d0e0; border-radius: var(--radius); padding: 26px 28px; }
.feature-wide h3 { color: #fff; }
.feature-wide p { margin: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); color: var(--muted); }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: var(--navy-deep); font-family: var(--display); font-weight: 700; margin-bottom: 14px; }
.steps strong { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; margin-bottom: 6px; font-size: 1.05rem; }

/* pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; margin-top: 40px; align-items: start; }
.plan { border: 2px solid var(--navy); border-radius: 18px; padding: 32px; background: #fff; }
.plan-price { font-family: var(--display); color: var(--muted); margin: 0 0 4px; }
.plan-price strong { font-size: 3rem; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.plan-credits { color: var(--teal-ink); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--teal-ink); border-bottom: 2.5px solid var(--teal-ink); transform: rotate(-45deg); }
.plan-note { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.credits { background: var(--surface-alt); border-radius: 18px; padding: 32px; }
.credit-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.credit-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.credit-table td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.credits-sum { color: var(--muted); font-size: .95rem; }
.topups-title { margin-top: 24px; }
.topups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.topup { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; text-align: center; }
.topup strong { font-family: var(--display); font-size: .98rem; }
.topup span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* questions */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--display); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

.cta { background: var(--navy); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; max-width: 22em; }

/* contact, privacy and terms */
.page-section { padding-top: 56px; }
.front-page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.front-page-text { color: #2c3550; }
.front-page-text h2 { font-size: 1.4rem; margin-top: 1.4em; }
.contact-layout { display: grid; gap: 24px; }
.contact-layout.has-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.contact-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.front-stat { background: var(--navy) !important; color: #fff; border-radius: var(--radius); padding: 16px; }
.front-stat-figure { font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.contact-form .required { color: #b3261e; }
.contact-form .form-control { width: 100%; padding: 11px 14px; border: 1px solid #b9c1d3; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.contact-form .form-control:focus { outline: 3px solid rgba(11, 127, 102, .35); border-color: var(--teal-ink); }
.contact-form textarea.form-control { min-height: 150px; }
.contact-form button, .contact-form .btn { display: inline-flex; padding: 12px 24px; border-radius: 10px; border: 0; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 600; cursor: pointer; }
.contact-sent { background: #e3f6ef; color: #0b5a48; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.contact-problem { background: #fdecea; color: #8c1d15; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }

/* footer */
.site-foot { background: var(--navy-deep); color: #a7b0c2; padding: 56px 0 28px; }
.site-foot-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-foot img { width: 200px; height: auto; margin-bottom: 14px; }
.site-foot p { margin: 0 0 4px; font-size: .92rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; align-content: flex-start; }
.site-foot nav a { color: #fff; text-decoration: none; }
.site-foot nav a:hover { color: var(--mint); }
.site-foot-small { margin-top: 36px; padding-top: 18px; border-top: 1px solid #26346f; font-size: .82rem; }

/* cookie question */
.consent { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9; max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 12px 30px rgba(11, 18, 53, .18); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.consent p { margin: 0; flex-basis: 100%; }
.consent[hidden] { display: none; }

@media (max-width: 960px) {
	.hero-inner, .pricing { grid-template-columns: 1fr; }
	.features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps { grid-template-columns: 1fr; }
	.hero { padding: 48px 0 60px; }
	.section { padding: 64px 0; }
}
@media (max-width: 640px) {
	.features, .feature-wide, .topups, .contact-layout.has-stats { grid-template-columns: 1fr; }
	.site-nav { gap: 14px; }
	.site-nav a:not(.button):not(.site-signin) { display: none; }
	.site-logo img { width: 150px; }
	.demo-figures strong { font-size: 1.1rem; }
	.plan, .credits { padding: 24px; }
}
