/* Home page layer for freewebtoapp.com ("Daylight": light, indigo, Sora display). Loaded after style.css and
   site-layer.css on the index page only. Every colour is a theme variable or a color-mix of one, so the palette
   lives in one place (css/style.css). Class prefix hp- keeps it clear of the shared layers. */

.home-page main { overflow-x: clip; }

/* ---- hero ---- */
.hp-hero { position: relative; padding: 128px 0 72px; background: var(--gradient-hero); overflow: hidden; }
.hp-hero::before { content: ''; position: absolute; top: -22%; right: -8%; width: 58vw; max-width: 720px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 14%, transparent), transparent 72%); pointer-events: none; }
.hp-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.hp-hero h1 { font-family: var(--font-display); font-size: clamp(34px, 4.8vw, 58px); line-height: 1.06; letter-spacing: -.02em; color: var(--text-primary); margin: 14px 0 18px; }
.hp-hero h1 .hp-mark { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--secondary) 45%, transparent) 62%); padding: 0 .06em; border-radius: 4px; }
.hp-hero .lead { color: var(--text-secondary); font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.65; max-width: 560px; margin: 0 0 26px; }

.hp-urlform { max-width: 600px; }
.hp-urlform-row { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: 18px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow-lg); transition: border-color .2s, box-shadow .2s; }
.hp-urlform-row:focus-within { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.hp-urlform-icon { font-size: 18px; opacity: .7; }
.hp-urlform-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--text-primary); padding: 10px 4px; }
.hp-urlform-row input::placeholder { color: var(--text-muted); }
.hp-urlform-row .btn { white-space: nowrap; padding: 13px 22px; }
.hp-urlform-note { color: var(--text-muted); font-size: 13px; margin: 12px 2px 0; line-height: 1.5; }
.hp-hero-alt { margin-top: 22px; color: var(--text-secondary); font-size: 15px; }
.hp-hero-alt a { color: var(--primary); font-weight: 600; text-decoration: none; }
.hp-hero-alt a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* phone mockup: a browser tab with Chrome's install sheet rising over it */
.hp-hero-visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hp-phone { width: 300px; max-width: 100%; aspect-ratio: 9 / 18.5; border-radius: 40px; background: var(--text-primary); padding: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.06); position: relative; }
.hp-phone::after { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 14px; background: var(--text-primary); z-index: 3; }
.hp-phone-screen { position: relative; height: 100%; border-radius: 30px; background: var(--bg-card); overflow: hidden; display: flex; flex-direction: column; }
.hp-phone-status { display: flex; justify-content: space-between; padding: 12px 22px 0; font-size: 12px; font-weight: 600; color: var(--text-primary); }
.hp-phone-urlbar { margin: 28px 14px 12px; background: var(--bg-input); border-radius: 22px; padding: 9px 14px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-secondary); }
.hp-phone-page { padding: 4px 18px; flex: 1; }
.hp-sk { height: 10px; border-radius: 6px; background: var(--bg-input); margin-bottom: 10px; }
.hp-sk.short { width: 62%; }
.hp-sk-title { height: 16px; width: 78%; background: color-mix(in srgb, var(--text-primary) 18%, var(--bg-input)); margin: 4px 0 14px; }
.hp-sk-img { height: 88px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 22%, var(--bg-input)), color-mix(in srgb, var(--accent) 22%, var(--bg-input))); margin: 6px 0 14px; }
.hp-install-sheet { margin: auto 10px 10px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; box-shadow: var(--shadow-md); animation: hp-sheet-in .9s cubic-bezier(.2,.8,.2,1) .4s both; }
.hp-install-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--gradient-primary); color: #fff; font-weight: 800; font-family: var(--font-display); display: grid; place-items: center; font-size: 18px; }
.hp-install-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.hp-install-text strong { color: var(--text-primary); font-size: 14px; }
.hp-install-text span { color: var(--text-muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-install-sheet span.hp-install-btn { grid-column: 1 / -1; background: var(--primary); color: #fff; border-radius: 10px; padding: 9px; font-weight: 700; font-size: 13px; text-align: center; }
@keyframes hp-sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.hp-file-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hp-file-chips span { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); padding: 6px 11px; border-radius: 999px; box-shadow: var(--shadow-sm); }
@media (prefers-reduced-motion: reduce) { .hp-install-sheet { animation: none; } }

/* ---- section basics ---- */
.hp-section { padding: 84px 0; }
.hp-section.alt { background: var(--bg-input); }
.hp-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.hp-head.left { margin: 0 0 36px; text-align: left; }
.hp-head h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; color: var(--text-primary); margin: 10px 0 14px; }
.hp-head p { color: var(--text-secondary); font-size: 1.08rem; line-height: 1.7; margin: 0; }
.hp-head p a { color: var(--primary); }
.hp-more { text-align: center; margin: 34px 0 0; color: var(--text-secondary); }
.hp-more a { color: var(--primary); font-weight: 600; text-decoration: none; }
.hp-more a:hover { text-decoration: underline; }

/* files grid */
.hp-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.hp-file { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.hp-file-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--primary) 10%, transparent); }
.hp-file code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; color: var(--text-primary); font-weight: 700; background: transparent; padding: 0; }
.hp-file p { margin: 6px 0 0; color: var(--text-secondary); font-size: .95rem; line-height: 1.55; }
.hp-file p code { font-weight: 500; font-size: .88em; background: var(--bg-input); padding: 1px 5px; border-radius: 5px; }
.hp-file.optional { border-style: dashed; }
.hp-file .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); margin-left: 8px; }

/* steps timeline */
.hp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.hp-step { position: relative; padding-top: 14px; }
.hp-step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-primary); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 18px; margin-bottom: 18px; box-shadow: var(--shadow-glow); position: relative; z-index: 1; }
.hp-step::after { content: ''; position: absolute; top: 36px; left: 52px; right: -26px; height: 2px; background: linear-gradient(90deg, var(--border-color), transparent); }
.hp-step:last-child::after { display: none; }
.hp-step h3 { font-size: 1.2rem; color: var(--text-primary); margin: 0 0 8px; }
.hp-step p { color: var(--text-secondary); line-height: 1.65; margin: 0; }
.hp-step p a { color: var(--primary); }

/* Android / iPhone block */
.hp-devices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hp-device { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 28px; }
.hp-device h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; color: var(--text-primary); margin: 0 0 6px; }
.hp-device .sub { color: var(--text-muted); font-size: .92rem; margin: 0 0 16px; }
.hp-device ul { list-style: none; padding: 0; margin: 0; }
.hp-device li { padding: 9px 0 9px 28px; position: relative; color: var(--text-secondary); line-height: 1.5; border-top: 1px solid var(--border-light); }
.hp-device li::before { position: absolute; left: 0; top: 9px; font-weight: 800; }
.hp-device li.yes::before { content: '✓'; color: var(--success); }
.hp-device li.no::before { content: '–'; color: var(--warning); }
.hp-device li strong { color: var(--text-primary); }
.hp-device a { color: var(--primary); }

/* quote split */
.hp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hp-split p { color: var(--text-secondary); line-height: 1.75; font-size: 1.05rem; }
.hp-split p a { color: var(--primary); }
.hp-quote { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.25; color: var(--text-primary); border-left: 4px solid var(--primary); padding-left: 24px; margin: 0; }
.hp-quote small { display: block; font-family: var(--font-primary); font-size: 15px; color: var(--text-muted); margin-top: 14px; font-weight: 500; }

/* routes */
.hp-routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.hp-route { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; }
.hp-route .want { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.hp-route h3 { font-size: 1.15rem; color: var(--text-primary); margin: 8px 0 10px; }
.hp-route p { color: var(--text-secondary); line-height: 1.6; margin: 0 0 16px; flex: 1; font-size: .97rem; }
.hp-route a.go { color: var(--primary); font-weight: 600; text-decoration: none; }
.hp-route a.go:hover { text-decoration: underline; }
.hp-route.primary { border-color: color-mix(in srgb, var(--primary) 45%, var(--border-color)); background: color-mix(in srgb, var(--primary) 5%, var(--bg-card)); }

.hp-grid-wide .container { max-width: 1160px; }

/* final CTA */
.hp-cta { padding: 90px 0; background: var(--gradient-primary); color: #fff; text-align: center; }
.hp-cta h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 44px); margin: 0 0 14px; letter-spacing: -.02em; color: #fff; }
.hp-cta p { max-width: 620px; margin: 0 auto 26px; opacity: .92; font-size: 1.08rem; line-height: 1.65; color: #fff; }
.hp-cta .btn { background: #fff; color: var(--primary-dark); }
.hp-cta .btn.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); margin-left: 10px; }

@media (max-width: 960px) {
    .hp-hero-grid, .hp-devices, .hp-split { grid-template-columns: 1fr; }
    .hp-hero { padding-top: 104px; }
    .hp-hero-visual { order: 2; }
    .hp-steps { grid-template-columns: 1fr; gap: 30px; }
    .hp-step::after { display: none; }
}
@media (max-width: 560px) {
    .hp-urlform-row { flex-wrap: wrap; padding: 10px; }
    .hp-urlform-row input { flex-basis: 100%; }
    .hp-urlform-row .btn { width: 100%; }
    .hp-urlform-icon { display: none; }
    .hp-phone { width: 250px; }
    .hp-cta .btn.btn-ghost { margin: 10px 0 0; }
}
