/* ============ OCEAN theme — sky, sea, sailboat, floating card ============ */
:root {
    --sky1: #a9dcfb;
    --sky2: #dff3ff;
    --sky3: #bfeee9;
    --sea1: #5cc3c4;
    --sea2: #1f8f9a;
    --sea3: #0d5d6b;
    --deep: #083f4c;
    --ink: #0b2b3a;
    --muted: #3e6576;
    --coral: #ff6b4a;
    --sun: #ffd166;
    --line: #d5e6ee;
    --field: #f3f9fc;
    --err: #d93a2b;
    --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    color: var(--ink); font: 15px/1.65 var(--font); overflow-x: hidden;
    background: linear-gradient(180deg, var(--sky1) 0, var(--sky2) 45%, var(--sky3) 100%);
    position: relative;
}
[hidden] { display: none !important; }
a { color: inherit; }

/* ---------- sky ---------- */
.sky { position: absolute; inset: 0 0 auto 0; height: 700px; overflow: hidden; pointer-events: none; z-index: 0; }
.sun {
    position: absolute; right: 9%; top: 70px; width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, #fff3c4 0, var(--sun) 55%, #ffb44a 100%);
    box-shadow: 0 0 0 22px rgba(255, 209, 102, .18), 0 0 0 48px rgba(255, 209, 102, .09), 0 0 90px 40px rgba(255, 220, 140, .45);
}
.cloud { position: absolute; height: 34px; border-radius: 40px; background: rgba(255, 255, 255, .85); animation: float 60s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 46px; height: 46px; left: 18px; top: -22px; }
.cloud::after { width: 64px; height: 64px; left: 50px; top: -34px; }
.c1 { width: 150px; top: 120px; left: 6%; }
.c2 { width: 110px; top: 60px; left: 46%; opacity: .7; animation-duration: 80s; animation-delay: -30s; }
.c3 { width: 170px; top: 230px; left: 72%; opacity: .6; animation-duration: 95s; animation-delay: -55s; }
@keyframes float { from { transform: translateX(-30vw); } to { transform: translateX(40vw); } }
.gulls { position: absolute; left: 30%; top: 150px; width: 120px; fill: none; stroke: #36627a; stroke-width: 2; stroke-linecap: round; opacity: .55; }

/* ---------- header ---------- */
.top {
    position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; min-width: 0; }
.logo svg { flex: none; width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: #fff; color: var(--sea3); fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; box-shadow: 0 4px 12px -4px rgba(13, 93, 107, .4); }
.logo span { overflow-wrap: anywhere; }
.buoy-tag {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 600; color: var(--sea3);
    box-shadow: 0 6px 18px -10px rgba(13, 93, 107, .6);
}
.buoy {
    width: 20px; height: 20px; border-radius: 50%;
    background: conic-gradient(var(--coral) 0 25%, #fff 0 50%, var(--coral) 0 75%, #fff 0);
    box-shadow: inset 0 0 0 4px transparent, 0 0 0 2px var(--coral); animation: bob 3s ease-in-out infinite;
}

/* ---------- layout ---------- */
.harbor {
    position: relative; z-index: 2; flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 30px 28px 0;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 56px; align-items: start; align-content: end;
}
.harbor-solo { grid-template-columns: minmax(0, 680px); justify-content: center; align-content: center; text-align: center; padding-bottom: 60px; }
.intro { padding: 20px 0 120px; }
.harbor-solo .intro { padding-bottom: 40px; }

.kicker {
    display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 18px;
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sea3);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--coral); }

/* banner / pennant */
.flag {
    position: relative; display: inline-block; max-width: 100%; margin: 0 0 26px 18px;
    padding: 18px 54px 18px 30px; color: #fff;
    background: linear-gradient(100deg, var(--sea3), var(--sea2));
    clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 50%, 100% 100%, 0 100%);
    filter: drop-shadow(0 12px 14px rgba(8, 63, 76, .25));
    transform-origin: left center; animation: wave-flag 6s ease-in-out infinite;
}
.flag::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--coral); }
.harbor-solo .flag { margin-left: 0; }
.domain {
    margin: 0; font-weight: 800; font-size: clamp(28px, 5.2vw, 62px); line-height: 1.08; letter-spacing: -.03em;
    overflow-wrap: anywhere;
}
@keyframes wave-flag { 0%, 100% { transform: skewY(0deg); } 50% { transform: skewY(-1.2deg); } }

.lead { margin: 0 0 10px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.copy { margin: 0 0 24px; max-width: 560px; font-size: 16px; color: var(--muted); }
.harbor-solo .copy { margin-inline: auto; }

.prices { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; }
.price { padding: 10px 18px; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px -16px rgba(8, 63, 76, .6); }
.price span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price strong { font-size: 24px; font-weight: 800; color: var(--sea3); }
.price-min strong { color: var(--coral); }

.features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; max-width: 560px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.f-ico { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .8); color: var(--sea2); box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.f-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features b { display: block; font-weight: 700; font-size: 15px; }
.features div span { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }

.build {
    display: flex; gap: 14px; align-items: center; max-width: 560px; padding: 14px 18px; border-radius: 16px;
    background: rgba(255, 255, 255, .55); border: 1px dashed rgba(13, 93, 107, .35);
}
.build svg { flex: none; width: 44px; height: 44px; fill: none; stroke: var(--sea3); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.build svg path:first-child { fill: #fff; }
.build h3 { margin: 0; font-size: 15px; font-weight: 700; }
.build p { margin: 0; font-size: 13.5px; color: var(--muted); }
.harbor-solo .build { margin: 0 auto; text-align: left; }

/* ---------- floating card ---------- */
.raft { position: relative; z-index: 3; padding-top: 10px; align-self: end; margin-bottom: -40px; }
.card {
    position: relative; background: #fff; border-radius: 26px; padding: 30px 30px 28px;
    box-shadow: 0 2px 0 rgba(255, 255, 255, .9) inset, 0 40px 60px -30px rgba(8, 63, 76, .55), 0 14px 30px -18px rgba(8, 63, 76, .45);
    animation: bob 7s ease-in-out infinite; scroll-margin-top: 24px;
}
.card::after {
    content: ""; position: absolute; left: 10%; right: 10%; bottom: -26px; height: 20px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(8, 63, 76, .3), transparent); z-index: -1;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.form-title, .ok-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.form-intro { margin: -8px 0 4px; font-size: 14px; color: var(--muted); }
.offer-form { display: flex; flex-direction: column; gap: 14px; }

.alert { padding: 11px 14px; border-radius: 12px; background: #fff0ec; color: var(--err); border-left: 4px solid var(--err); font-size: 14px; font-weight: 600; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f > span:not(.field-error), .f > label { font-size: 12.5px; font-weight: 600; color: var(--sea3); }

input[type=text], input[type=email], input[type=tel], textarea, select {
    width: 100%; font: 400 15px var(--font); color: var(--ink); background: var(--field);
    border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #93adb9; }
input:focus, textarea:focus, select:focus { background: #fff; border-color: var(--sea2); box-shadow: 0 0 0 4px rgba(31, 143, 154, .16); }

.money { display: flex; background: var(--field); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.money:focus-within { background: #fff; border-color: var(--sea2); box-shadow: 0 0 0 4px rgba(31, 143, 154, .16); }
.money input { border: 0; border-radius: 0; background: transparent; box-shadow: none !important; flex: 1; min-width: 0; font-size: 19px; font-weight: 700; color: var(--sea3); }
.money select, .money .cur {
    flex: none; width: auto; border: 0; border-left: 1.5px solid var(--line); border-radius: 0;
    background-color: #e6f4f6; color: var(--sea3); font-weight: 700; font-size: 14px; padding: 0 32px 0 14px; cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--sea3) 50%), linear-gradient(135deg, var(--sea3) 50%, transparent 50%);
    background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat;
}
.money select:focus { box-shadow: none; background-color: #d3eef1; }
.money .cur { display: grid; place-items: center; padding: 0 14px; background-image: none; cursor: default; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--sea2); }
.check input:focus-visible { outline: 2px solid var(--sea2); outline-offset: 2px; }
.field-error { color: var(--err); font-size: 12.5px; font-weight: 600; }
.field-error:empty { display: none; }
.is-err input, .is-err textarea, .is-err .money { border-color: var(--err); background: #fff7f5; }
.is-err .money input { background: transparent; }
.check.is-err span { color: var(--err); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    padding: 15px 22px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
    font: 700 15.5px var(--font); color: #fff; background: linear-gradient(100deg, var(--coral), #ff8a5c);
    box-shadow: 0 14px 26px -12px rgba(255, 107, 74, .8); transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:hover svg { transform: translateX(3px); }
.btn:focus-visible { outline: 3px solid var(--sea2); outline-offset: 3px; }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.btn-ghost { width: auto; background: #fff; color: var(--sea3); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--sea2); filter: none; }

.state-ok { text-align: center; padding: 10px 0 8px; }
.ok-ico { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--sea1), var(--sea2)); box-shadow: 0 0 0 8px #e3f5f6; }
.ok-ico svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.state-ok p { margin: 8px 0 20px; color: var(--muted); }

.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- sea ---------- */
.sea { position: relative; z-index: 1; height: 220px; margin-top: -150px; pointer-events: none; }
.no-sale .sea { margin-top: -40px; }
.waves { z-index: 0; position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; display: block; overflow: hidden; }
.w { animation: swell 14s linear infinite; }
.w1 path { fill: var(--sea1); opacity: .75; }
.w2 path { fill: var(--sea2); opacity: .9; }
.w3 path { fill: var(--sea3); }
.w2 { animation-duration: 10s; animation-direction: reverse; }
.w3 { animation-duration: 7s; }
@keyframes swell { from { transform: translateX(0); } to { transform: translateX(-720px); } }
.boat { position: absolute; left: 7%; bottom: 122px; width: 110px; animation: sail 6s ease-in-out infinite; z-index: 1; transform-origin: 50% 85%; }
.boat .sail-a { fill: #fff; }
.boat .sail-b { fill: #fff6e0; }
.boat .mast { stroke: #6b4a2f; stroke-width: 3; }
.boat .flag-s { fill: var(--coral); }
.boat .hull { fill: var(--coral); }
.boat .stripe { stroke: #fff; stroke-width: 3; }
@keyframes sail { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }

/* ---------- footer ---------- */
.foot {
    position: relative; z-index: 2; background: var(--sea3); color: #cfeef0; text-align: center;
    padding: 6px 24px 26px; font-size: 13.5px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px;
    box-shadow: 0 -1px 0 var(--sea3);
}
.foot span { overflow-wrap: anywhere; }
.foot-note { color: var(--sun); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .harbor { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .intro { padding-bottom: 20px; }
    .raft { align-self: auto; margin-bottom: -60px; }
}
@media (max-width: 600px) {
    .top { padding: 16px; }
    .harbor { padding: 16px 16px 0; }
    .flag { margin-left: 0; padding: 14px 42px 14px 22px; clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 50%, 100% 100%, 0 100%); }
    .sun { width: 80px; height: 80px; right: 6%; top: 90px; }
    .card { padding: 24px 18px 22px; border-radius: 22px; }
    .row { grid-template-columns: minmax(0, 1fr); }
    .boat { width: 80px; bottom: 100px; left: auto; right: 6%; }
    .sea { height: 180px; margin-top: -60px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* splash-safety: never allow sideways scrolling (iOS ignores body overflow-x:hidden) */
html, body { overflow-x: clip; }
