good-morning / style.css
clem
Add 'Try in simulation' section to landing page
4f80aa2
Raw
History Blame Contribute Delete
7.32 kB
:root {
--bg: #fff8ee;
--fg: #2b1700;
--muted: #6b4f2c;
--primary: #ff9900;
--primary-strong: #e07a00;
--card: #ffffff;
--shadow: 0 12px 40px rgba(255, 153, 0, 0.18);
--radius: 16px;
--max: 880px;
font-family:
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
background: var(--bg);
color: var(--fg);
}
main {
max-width: var(--max);
margin: 0 auto;
padding: 4rem 1.25rem 6rem;
}
.firstly {
display: flex;
align-items: center;
gap: 0.75rem;
flex-wrap: wrap;
margin: 0 auto 1.5rem;
padding: 0.75rem 1.1rem;
background: linear-gradient(90deg, #fff3da, #ffe0b8);
border: 1px solid rgba(224, 122, 0, 0.18);
border-radius: 12px;
font-size: 0.95rem;
color: var(--fg);
line-height: 1.45;
}
.firstly a {
color: var(--primary-strong);
font-weight: 600;
text-decoration: none;
border-bottom: 1px dashed currentColor;
}
.firstly-pill {
flex: 0 0 auto;
font-size: 0.78rem;
font-weight: 800;
letter-spacing: 0.04em;
text-transform: uppercase;
padding: 0.25rem 0.6rem;
border-radius: 999px;
background: var(--primary);
color: white;
}
a {
color: var(--primary-strong);
}
.hero {
text-align: center;
padding: 2rem 1rem 3rem;
background:
radial-gradient(circle at top, #ffe9b5 0%, transparent 70%),
var(--card);
border-radius: var(--radius);
box-shadow: var(--shadow);
}
.badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.4rem 0.9rem;
border-radius: 999px;
background: rgba(255, 153, 0, 0.12);
color: var(--primary-strong);
font-size: 0.85rem;
font-weight: 600;
}
.badge .dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--primary);
box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.18);
}
h1 {
margin: 1rem 0 0.5rem;
font-size: clamp(2rem, 5vw, 3rem);
letter-spacing: -0.02em;
}
h1 .emoji {
display: inline-block;
transform-origin: 50% 50%;
animation: shine 4s ease-in-out infinite;
filter: drop-shadow(0 0 12px rgba(255, 200, 60, 0.55));
}
@keyframes shine {
0%,
100% {
transform: rotate(0deg) scale(1);
}
50% {
transform: rotate(8deg) scale(1.06);
}
}
.lede {
max-width: 560px;
margin: 0.5rem auto 1.75rem;
color: var(--muted);
font-size: 1.1rem;
line-height: 1.55;
}
.cta {
display: inline-block;
padding: 0.85rem 1.5rem;
background: var(--primary);
color: white;
font-weight: 700;
text-decoration: none;
border-radius: 999px;
box-shadow: 0 6px 18px rgba(255, 153, 0, 0.35);
transition: transform 0.08s ease, background 0.2s ease;
}
.cta:hover {
background: var(--primary-strong);
}
.cta:active {
transform: translateY(2px);
}
.preview {
margin: 1.75rem auto 1.5rem;
display: grid;
place-items: center;
gap: 0.5rem;
}
.preview button {
font: inherit;
font-size: 1.25rem;
font-weight: 700;
padding: 1.1rem 2.2rem;
border-radius: 999px;
border: 0;
background: var(--primary);
color: white;
cursor: pointer;
box-shadow: 0 10px 28px rgba(255, 153, 0, 0.4);
transition: transform 0.08s ease, background 0.2s ease;
}
.preview button:hover {
background: var(--primary-strong);
}
.preview button:active {
transform: translateY(2px);
}
.preview-note {
margin: 0;
font-size: 0.85rem;
color: var(--muted);
max-width: 36ch;
text-align: center;
line-height: 1.4;
}
.install ol.install-steps {
list-style: none;
padding: 0;
margin: 0;
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
@media (min-width: 720px) {
.install ol.install-steps {
grid-template-columns: 1fr 1fr;
}
}
.install li {
display: flex;
gap: 1rem;
padding: 1.1rem 1.25rem;
background: var(--card);
border-radius: var(--radius);
box-shadow: 0 4px 18px rgba(43, 23, 0, 0.06);
}
.install .step {
flex: 0 0 2.25rem;
height: 2.25rem;
border-radius: 50%;
background: var(--primary);
color: white;
display: grid;
place-items: center;
font-weight: 700;
}
.install h3 {
margin: 0 0 0.25rem;
font-size: 1.05rem;
}
.install p {
margin: 0;
color: var(--muted);
font-size: 0.95rem;
line-height: 1.5;
}
section {
margin-top: 3rem;
}
section h2 {
font-size: 1.5rem;
margin: 0 0 1.25rem;
}
.how ol {
list-style: none;
padding: 0;
margin: 0;
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
@media (min-width: 720px) {
.how ol {
grid-template-columns: 1fr 1fr;
}
}
.how li {
display: flex;
gap: 1rem;
padding: 1.1rem 1.25rem;
background: var(--card);
border-radius: var(--radius);
box-shadow: 0 4px 18px rgba(43, 23, 0, 0.06);
}
.how .step {
flex: 0 0 2.25rem;
height: 2.25rem;
border-radius: 50%;
background: var(--primary);
color: white;
display: grid;
place-items: center;
font-weight: 700;
}
.how h3 {
margin: 0 0 0.25rem;
font-size: 1.05rem;
}
.how p {
margin: 0;
color: var(--muted);
font-size: 0.95rem;
line-height: 1.5;
}
.sim {
margin-top: 3rem;
}
.sim-card {
padding: 1.75rem;
border-radius: var(--radius);
background: linear-gradient(180deg, #fff 0%, #fff7e6 100%);
border: 1px solid rgba(255, 153, 0, 0.25);
box-shadow: 0 12px 36px rgba(255, 153, 0, 0.12);
}
.sim-headline {
display: flex;
align-items: center;
gap: 0.75rem;
flex-wrap: wrap;
margin-bottom: 0.5rem;
}
.sim-headline h2 {
margin: 0;
}
.sim-pill {
font-size: 0.78rem;
font-weight: 800;
letter-spacing: 0.04em;
text-transform: uppercase;
padding: 0.25rem 0.65rem;
border-radius: 999px;
background: var(--primary);
color: #fff;
}
.sim ol.sim-steps {
list-style: none;
padding: 0;
margin: 1.25rem 0 0;
display: grid;
gap: 1rem;
}
.sim ol.sim-steps li {
display: flex;
gap: 1rem;
padding: 1rem 1.1rem;
background: var(--card);
border-radius: 12px;
box-shadow: 0 2px 10px rgba(43, 23, 0, 0.05);
}
.sim .step {
flex: 0 0 2.25rem;
height: 2.25rem;
border-radius: 50%;
background: var(--primary);
color: white;
display: grid;
place-items: center;
font-weight: 700;
}
.sim h3 {
margin: 0 0 0.4rem;
font-size: 1.05rem;
}
.sim p {
margin: 0;
color: var(--muted);
font-size: 0.95rem;
line-height: 1.5;
}
.sim pre {
margin: 0.4rem 0 0;
padding: 0.85rem 1rem;
background: #2b1700;
color: #ffe9b5;
border-radius: 10px;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.85rem;
line-height: 1.55;
overflow-x: auto;
}
.sim pre code {
background: transparent;
color: inherit;
padding: 0;
font-size: inherit;
}
.sim-note {
margin-top: 0.5rem !important;
font-style: italic;
color: var(--muted);
}
.sim-foot {
margin-top: 1.25rem !important;
font-size: 0.9rem;
text-align: center;
}
.features ul {
padding: 0;
margin: 0;
list-style: none;
display: grid;
gap: 0.6rem;
}
.features li {
padding: 0.85rem 1rem;
background: var(--card);
border-left: 4px solid var(--primary);
border-radius: 8px;
box-shadow: 0 2px 10px rgba(43, 23, 0, 0.05);
}
code {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
background: rgba(43, 23, 0, 0.06);
padding: 0.1rem 0.35rem;
border-radius: 4px;
font-size: 0.92em;
}
footer {
margin-top: 4rem;
text-align: center;
color: var(--muted);
font-size: 0.9rem;
}