/* frinos.com — one-page site */
:root {
    --navy: #1C1D21;
    --navy-deep: #121316;
    --navy-raised: #2C2E34;
    --ring-dark: #26282D;
    --ring-dark-2: #222327;
    --line-dark: #3A3C43;
    --ground: #F4F4F1;
    --ring-light: #EAEAE4;
    --ink: #1B1C20;
    --muted: #5C5F68;
    --muted-dark: #B3B6BF;
    --white: #FFFFFF;
    --icon: #C6F04D;
    --soft-bg: #EDF5D3;
    --soft-ink: #4A5E0A;
    --field-border: #8D9099;
    --error: #B42318;
    --accent: #C6F04D;
    --shadow-card: 0 1px 2px rgba(28, 29, 33, .06), 0 14px 40px rgba(28, 29, 33, .08);
    --shadow-float: 0 30px 80px rgba(10, 10, 12, .45);
    --display: 'Geologica', system-ui, sans-serif;
    --body: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--ground);
    overflow-x: hidden;
}
a { color: var(--ink); }
a:hover { opacity: .88; }
:focus-visible { outline: 2px solid var(--soft-ink); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
}
.muted { color: var(--muted); font-size: 15px; }

/* Decorative rings */
.ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring-hero-1 { top: -360px; right: -300px; width: 980px; height: 980px; border: 130px solid var(--ring-dark); }
.ring-hero-2 { bottom: -420px; left: -260px; width: 640px; height: 640px; border: 70px solid var(--ring-dark-2); }
.ring-light-1 { top: 120px; right: -380px; width: 900px; height: 900px; border: 110px solid var(--ring-light); }
.ring-light-2 { top: 1500px; left: -420px; width: 820px; height: 820px; border: 100px solid var(--ring-light); }
.ring-example-1 { top: -280px; left: -340px; width: 820px; height: 820px; border: 120px solid var(--ring-dark); }
.ring-example-2 { bottom: -380px; right: -200px; width: 620px; height: 620px; border: 60px solid var(--ring-dark-2); }
.ring-contact { top: -200px; right: -320px; width: 760px; height: 760px; border: 100px solid var(--ring-light); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 54px; padding: 0 26px;
    border: 0; border-radius: 12px;
    font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
}
.btn svg { stroke-width: 2.2; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-ghost { background: var(--navy-raised); color: var(--white); font-weight: 700; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-soft { background: var(--soft-bg); color: var(--soft-ink); font-weight: 700; min-height: 50px; }

/* Eyebrow label with accent bar */
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--muted);
}
.eyebrow-dark { color: var(--muted-dark); }
.bar { display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.nav {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px 32px; padding: 24px 0;
}
.brand {
    display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
    color: var(--white); text-decoration: none;
    font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.03em;
}
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 11px;
    background: var(--navy-deep); color: var(--accent);
    font-size: 24px; line-height: 1; box-shadow: inset 0 0 0 1px var(--line-dark);
}
.brand-sm { font-size: 20px; gap: 10px; }
.brand-logo { display: block; height: 44px; width: auto; }
.brand-sm .brand-logo { height: 32px; }
.brand-sm .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 19px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav-links a {
    display: inline-flex; align-items: center; min-height: 44px;
    color: #DCDDE2; text-decoration: none; font-size: 16px; font-weight: 500;
}
.nav-links .nav-cta { padding: 0 20px; background: var(--white); border-radius: 10px; color: var(--navy); font-weight: 700; }

.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 64px; padding: 72px 0 112px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.pill {
    display: inline-flex; align-items: center; gap: 10px; min-height: 36px;
    padding: 4px 16px 4px 6px; border-radius: 999px; background: var(--navy-raised);
    font-size: 14px; font-weight: 600; color: #DCDDE2;
}
.pill-tag {
    display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px;
    border-radius: 999px; background: var(--accent); color: var(--navy);
    font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.hero h1 { font-size: clamp(40px, 6vw, 82px); line-height: .98; letter-spacing: -.045em; }
.lead { max-width: 580px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; padding-top: 6px; }

.window {
    flex: 1 1 380px; min-width: 0; overflow: hidden;
    background: var(--white); color: var(--ink);
    border-radius: 18px; box-shadow: var(--shadow-float);
}
.window-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #EFEFEC; }
.dots { display: flex; gap: 7px; }
.dots span { display: block; width: 12px; height: 12px; border-radius: 50%; }
.dots span:nth-child(1) { background: #FF5F57; }
.dots span:nth-child(2) { background: #FEBC2E; }
.dots span:nth-child(3) { background: #28C840; }
.url { flex: 1 1 auto; min-width: 0; padding: 4px 12px; border-radius: 8px; background: var(--white); font-size: 14px; color: var(--muted); }
.window-label { padding: 20px 22px 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.index { display: flex; flex-direction: column; padding: 0 10px 12px; }
.index a {
    display: flex; align-items: center; gap: 14px; min-height: 60px;
    padding: 8px 12px; border-radius: 12px; color: var(--ink); text-decoration: none;
}
.index a:hover { background: var(--ground); opacity: 1; }
.index svg { flex: none; stroke: var(--muted); }
.num {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--navy); color: var(--white); font-size: 13px; font-weight: 800;
}
.num-accent { background: var(--accent); color: var(--navy); }
.index-text { flex: 1 1 auto; font-weight: 700; font-size: 17px; line-height: 1.3; }

.tech-strip {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px 28px; padding: 22px 0 28px; border-top: 1px solid var(--line-dark);
}
.tech-list { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 14px; font-weight: 600; color: var(--muted-dark); }
.tech-url { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; }
.tech-url .bar { width: 36px; }

/* Services */
.services { position: relative; overflow: hidden; padding: 112px 0 88px; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 820px; padding-bottom: 40px; }
.section-head h2, .example h2, .contact h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.04em; }
.section-head p { font-size: 19px; color: var(--muted); }

.band { display: flex; flex-wrap: wrap; gap: 24px 48px; padding: 40px 0; scroll-margin-top: 16px; }
.band-head { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.band-num { font-size: 15px; font-weight: 700; color: var(--muted); }
.band-head h3 { font-size: 32px; line-height: 1.08; letter-spacing: -.035em; }
.band-head p { font-size: 16px; color: var(--muted); }
.band-cards {
    flex: 3 1 540px; min-width: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px;
}
.card {
    display: flex; flex-direction: column; gap: 12px; padding: 26px;
    background: var(--white); border-radius: 18px; box-shadow: var(--shadow-card);
}
.card h4 { margin: 4px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.card p { font-size: 16px; color: var(--muted); }
.icon-tile {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 52px; height: 52px; border-radius: 14px; background: var(--navy);
}
.icon-tile svg { width: 26px; height: 26px; stroke: var(--icon); stroke-width: 1.7; }
.icon-tile-sm { width: 46px; height: 46px; border-radius: 12px; }
.icon-tile-sm svg { width: 24px; height: 24px; }
.icon-tile-white svg { stroke: var(--white); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.tag {
    display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px;
    border-radius: 999px; background: var(--soft-bg); color: var(--soft-ink);
    font-size: 13px; font-weight: 700;
}

/* Example */
.example { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 104px 0; }
.example-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.example-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.example .lead { font-size: 19px; max-width: 520px; }
.example .muted { color: var(--muted-dark); font-size: 16px; max-width: 520px; }
.example .btn { margin-top: 6px; }
.flow {
    flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px;
    padding: 22px; background: var(--white); color: var(--ink);
    border-radius: 20px; box-shadow: var(--shadow-float);
}
.flow-step {
    display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 12px 16px;
    background: var(--ground); border-radius: 14px; font-weight: 700;
}
.flow-step-alert { background: var(--accent); color: var(--navy); font-weight: 800; }
.flow-arrow { margin-left: 29px; stroke: var(--muted); }

/* Contact */
.contact { position: relative; overflow: hidden; padding: 112px 0; scroll-margin-top: 0; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.contact-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-text > p { max-width: 460px; font-size: 19px; color: var(--muted); }
.contact-list { margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list div {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px;
    padding: 16px 20px; background: var(--white); border-radius: 14px;
    box-shadow: 0 1px 2px rgba(28, 29, 33, .06);
}
.contact-list dt { flex: 0 0 100px; font-size: 14px; font-weight: 700; color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 700; }

.form-card {
    flex: 1.2 1 400px; min-width: 0; background: var(--white); border-radius: 22px;
    box-shadow: 0 1px 2px rgba(28, 29, 33, .06), 0 24px 60px rgba(28, 29, 33, .12);
    padding: clamp(20px, 4vw, 40px);
}
.form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field-row .field { flex: 1 1 220px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 700; }
.field input, .field textarea {
    width: 100%; font: inherit; color: var(--ink);
    background: var(--ground); border: 1px solid var(--field-border); border-radius: 12px;
}
.field input { min-height: 52px; padding: 0 16px; }
.field textarea { padding: 14px 16px; resize: vertical; }
.field input.input-validation-error, .field textarea.input-validation-error { border-color: var(--error); }
.field-error { font-size: 14px; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.form-error ul { margin: 0; padding: 12px 16px; list-style: none; border-radius: 12px; background: #FDECEA; color: var(--error); font-weight: 600; }
.form-error.validation-summary-valid { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; }
.success-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px; background: var(--accent);
}
.success-mark svg { width: 26px; height: 26px; stroke: var(--navy); stroke-width: 2.2; }
.success h3 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.success p { color: var(--muted); }

/* Overlays: waiting prompt and confirmation */
body.is-locked { overflow: hidden; }
.overlay {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(18, 19, 22, .74);
}
.overlay[hidden] { display: none; }
.overlay-card {
    width: 100%; max-width: 480px;
    display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
    padding: clamp(28px, 5vw, 44px);
    background: var(--white); border-radius: 22px; box-shadow: var(--shadow-float);
}
.overlay-card h3 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.12; letter-spacing: -.03em; }
.overlay-card p { color: var(--muted); }
.overlay-card .btn { margin-top: 8px; }
.spinner {
    width: 48px; height: 48px; border-radius: 50%;
    border: 5px solid var(--ring-light); border-top-color: var(--navy);
    animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* Footer */
.footer { background: var(--navy); color: var(--muted-dark); }
.footer-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px 32px; padding-top: 28px; padding-bottom: 28px; font-size: 15px;
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); }
