Email capture hero
Centered logo, headline and subline over a waitlist email field with the submit button inside it, and an outlined tour button with a play icon below.
snippet.html109 lines
<section class="ech">
<header class="ech__bar">
<a class="ech__logo" href="#" data-block="Logo">Root<b>note</b></a>
</header>
<div class="ech__body">
<h1 class="ech__title" data-block="Title">Know when each houseplant needs water</h1>
<p class="ech__text" data-block="Subtitle">Photograph a plant once and get its watering days. Out in March.</p>
<form class="ech__form" action="#" method="post" data-block="Form">
<label class="ech__label" for="ech-email">Email address</label>
<div class="ech__field">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5h16v14H4z" fill="none" stroke="currentColor" stroke-width="2"/><path d="m4 6 8 7 8-7" fill="none" stroke="currentColor" stroke-width="2"/></svg>
<input class="ech__input" id="ech-email" type="email" name="email" placeholder="you@example.com" autocomplete="email" required>
<button class="ech__btn ech__btn--solid" type="submit">Join<span> the waitlist</span></button>
</div>
</form>
<a class="ech__btn ech__tour" href="#" data-block="CTA">
<svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="10" fill="currentColor"/><path d="M10 8v8l6-4z" fill="#fff"/></svg>
Watch the 90-second tour
</a>
</div>
</section>
<style>
.ech {
--ech-bg: #ffffff;
--ech-brand: #111111;
--ech-brand-dark: #000000;
--ech-tint: #f2f2f2;
--ech-line: #d4d4d4;
--ech-surface: #ffffff;
min-height: 100vh;
box-sizing: border-box;
display: flex;
flex-direction: column;
background: var(--ech-bg);
color: var(--ech-brand);
font-family: Montserrat, "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
.ech *, .ech *::before, .ech *::after { box-sizing: border-box; }
.ech a { color: inherit; text-decoration: none; }
.ech a:focus-visible, .ech button:focus-visible { outline: 2px solid var(--ech-brand-dark); outline-offset: 3px; border-radius: 4px; }
.ech__bar { display: flex; align-items: center; justify-content: center; height: 64px; margin-top: clamp(1rem, 9vh, 5rem); padding: 0 clamp(1rem, 3.4vw, 3rem); }
.ech__logo { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.01em; }
.ech__logo b { font-weight: 700; }
.ech__body {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
max-width: calc(1128px + 4rem);
margin: 0 auto;
padding: 2rem clamp(1rem, 4vw, 2rem) clamp(3rem, 30vh, 18rem);
text-align: center;
}
.ech__title { margin: 0; font-size: clamp(2.25rem, 4.2vw, 3.125rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.ech__text { max-width: 40rem; margin: clamp(1.5rem, 7vh, 4.25rem) 0 3rem; font-size: 1rem; font-weight: 700; line-height: 1.5; }
.ech__form { width: 100%; max-width: 556px; }
.ech__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ech__field {
display: flex; align-items: center; gap: 0.75rem;
height: 48px; padding: 3px 3px 3px 0.75rem;
border: 1px solid var(--ech-brand); border-radius: 6px;
background: var(--ech-surface);
transition: box-shadow 0.15s;
}
.ech__field:focus-within { box-shadow: 0 0 0 3px rgb(0 0 0 / 0.1); }
.ech__field svg { width: 22px; height: 22px; flex: none; color: var(--ech-brand-dark); }
.ech__input {
flex: 1; min-width: 0; height: 100%;
border: 0; background: transparent; outline: none;
color: var(--ech-brand-dark); font: inherit; font-size: 0.875rem; font-weight: 500;
}
.ech__input::placeholder { color: var(--ech-brand); opacity: 0.75; }
.ech__btn {
display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
min-height: 48px; padding: 0 2rem;
border: 1px solid var(--ech-brand); border-radius: 4px;
background: transparent; color: var(--ech-brand);
font: inherit; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em;
cursor: pointer;
transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.ech__btn:hover { background: var(--ech-tint); }
.ech__btn--solid { gap: 0; min-height: 40px; height: 40px; padding: 0 1.75rem; background: var(--ech-brand); color: #fff; white-space: nowrap; }
.ech__btn--solid:hover { background: var(--ech-brand-dark); border-color: var(--ech-brand-dark); }
.ech__tour { margin-top: 3rem; padding: 0 1.75rem; }
.ech__tour svg { width: 22px; height: 22px; flex: none; color: var(--ech-brand-dark); }
@media (max-width: 480px) {
.ech__btn--solid { padding: 0 1.25rem; }
.ech__btn--solid span { display: none; }
.ech__tour { margin-top: 2rem; }
}
@media (max-width: 420px) {
.ech__logo { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
.ech__btn, .ech__field { transition: none; }
}
</style>




