Webdev-Bench / tasks /c35 /repo /src /index.css
Roy-DOU's picture
Add files using upload-large-folder tool
d77bae9 verified
Raw History Blame Contribute Delete
16.5 kB
:root {
--bg: #1a090f;
--nav: #5b002e;
--cream: #fff8dc;
--purple: #a85afe;
--orange: #ff3600;
--yellow: #fff527;
--magenta: #ff009c;
--lightpink: #fec4ed;
--green: #84ff00;
--olive: #2e3c00;
--maroon: #791a16;
--scanpink: #fb63b6;
--payorange: #cc6601;
--card2: #ffcb99;
--card4: #992001;
--card5: #fd8668;
--faqcream: #ffe6cd;
--faqitem: #c02801;
--faqyellow: #ffee31;
--navy: #001c32;
--blue: #0080ff;
--stitch-m: #9a0060;
--stitch-d: #341a01;
--muted: #757374;
--ink: #1a090f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
margin: 0;
padding: 0;
}
body {
background: var(--bg);
color: #fff;
font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.page { overflow-x: clip; }
/* ---------------- Navbar ---------------- */
.nav-wrap {
padding-top: 29px;
display: flex;
justify-content: center;
}
.nav-bar {
width: min(1220px, 94vw);
height: 92px;
background: var(--nav);
border-radius: 22px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 26px 0 28px;
}
.nav-logo img { height: 42px; width: auto; display: block; }
.nav-logo { transition: opacity 0.15s ease; }
.nav-logo:hover { opacity: 0.85; }
.nav-links {
list-style: none;
display: flex;
gap: 46px;
margin: 0 0 0 -80px;
padding: 0;
}
.nav-links a {
font-size: 15.5px;
font-weight: 700;
color: #fff;
transition: color 0.15s ease, opacity 0.15s ease;
}
.nav-links a:hover { color: var(--lightpink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-try {
background: var(--green);
color: #072100;
font-size: 13px;
font-weight: 700;
padding: 11px 15px;
border-radius: 9px;
transition: filter 0.15s ease, transform 0.15s ease;
}
.btn-try:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-try:active { transform: translateY(0) scale(0.98); }
.theme-toggle {
display: flex;
align-items: center;
gap: 9px;
background: #f4f4f4;
border: none;
border-radius: 10px;
padding: 6px 7px 6px 10px;
transition: filter 0.15s ease;
}
.theme-toggle:hover { filter: brightness(0.94); }
.theme-toggle:active { transform: scale(0.97); }
.toggle-pill {
background: #fb009d;
border-radius: 8px;
width: 31px;
height: 26px;
display: flex;
align-items: center;
justify-content: center;
}
/* ---------------- Hero ---------------- */
.hero {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 120px;
}
.hero-blocks {
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
font-size: clamp(40px, 5.2vw, 100px);
line-height: 1;
letter-spacing: -0.01em;
}
.hero-row {
display: flex;
align-items: stretch;
gap: 0.14em;
}
.h-block {
display: flex;
align-items: center;
padding: 0.28em 0.4em 0.34em;
border-radius: 0.3em;
color: var(--cream);
white-space: nowrap;
}
.h-purple { background: var(--purple); }
.h-orange { background: var(--orange); }
.h-yellow { background: var(--yellow); color: var(--ink); }
.h-pink { background: var(--lightpink); color: var(--ink); }
.h-qr {
width: 1.6em;
border-radius: 0.24em;
overflow: hidden;
flex: none;
display: flex;
}
.h-qr img { width: 100%; height: 100%; object-fit: cover; }
.hero-banks {
margin-top: 84px;
display: flex;
flex-direction: column;
align-items: center;
}
.banks-label {
margin: 0;
font-size: 12.5px;
font-weight: 700;
letter-spacing: 0.04em;
color: var(--muted);
}
.bank-row {
display: flex;
gap: 12px;
margin-top: 14px;
flex-wrap: wrap;
}
.bank-row img {
height: 26px;
width: auto;
border-radius: 6px;
display: block;
}
.scroll-pill {
margin-top: 44px;
display: inline-flex;
align-items: center;
gap: 12px;
background: #333333;
color: #c9c9c9;
font-size: 15px;
font-weight: 500;
letter-spacing: 0.14em;
padding: 11px 24px;
border-radius: 21px;
transition: background 0.15s ease, transform 0.15s ease;
}
.scroll-pill:hover { background: #3f3f3f; transform: translateY(2px); }
/* ---------------- Feature panels ---------------- */
.feature-panels {
position: relative;
width: min(1080px, 92vw);
margin: 335px auto 0;
}
.panel {
padding: 62px 60px 0;
}
.panel-pink { background: var(--magenta); height: 497px; }
.panel-yellow { background: var(--yellow); height: 503px; color: var(--maroon); margin-top: 38px; }
.panel-orange { background: var(--orange); height: 513px; }
.panel-maroon { background: var(--maroon); height: 601px; }
.stitch-row {
height: 26px;
background: repeating-linear-gradient(90deg, var(--stitch-m) 0 44px, var(--stitch-d) 44px 90px);
}
.orange .panel, .maroon .panel { position: relative; }
.orange .panel::before,
.maroon .panel::before,
.orange .panel::after,
.maroon .panel::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
width: 7px;
background: repeating-linear-gradient(180deg, var(--stitch-m) 0 44px, var(--stitch-d) 44px 90px);
}
.orange .panel::before, .maroon .panel::before { left: 4px; }
.orange .panel::after, .maroon .panel::after { right: 4px; }
.panel-title {
margin: 0;
font-family: 'Fredoka', 'Space Grotesk', sans-serif;
font-weight: 600;
font-size: clamp(30px, 2.95vw, 56px);
line-height: 1.13;
letter-spacing: 0.01em;
display: flex;
flex-direction: column;
}
.panel .banks-label {
margin-top: 84px;
color: inherit;
opacity: 0.95;
font-family: 'Fredoka', sans-serif;
font-weight: 500;
letter-spacing: 0.05em;
}
.panel-pink, .panel-orange { color: #fff; }
.panel-maroon .banks-label { color: #ffa51f; }
.hero-phone {
position: absolute;
top: -28px;
right: 13px;
width: 303px;
z-index: 3;
}
/* ---------------- Callouts (Scan / Start paying) ---------------- */
.scan-callout {
margin-top: 498px;
text-align: center;
}
.callout-heading {
margin: 0;
font-size: clamp(34px, 3.25vw, 62px);
font-weight: 700;
line-height: 1.07;
letter-spacing: -0.01em;
}
.callout-pink { color: var(--scanpink); }
.callout-orange { color: var(--payorange); }
.qr-chip {
height: 1.02em;
width: auto;
border-radius: 0.18em;
vertical-align: -0.14em;
display: inline-block;
}
.all-on {
margin: 30px 0 0;
display: flex;
align-items: center;
justify-content: center;
gap: 9px;
}
.all-on span {
font-size: 12px;
font-weight: 700;
color: var(--muted);
letter-spacing: 0.02em;
}
.all-on img { width: 23px; height: 24px; }
.all-on strong { font-size: 15.5px; font-weight: 700; color: #fff; }
/* ---------------- Security panel ---------------- */
.security-section {
margin-top: 212px;
display: flex;
justify-content: center;
}
.security-panel {
position: relative;
width: min(1005px, 92vw);
min-height: 352px;
background: var(--green);
border-radius: 42px;
color: var(--olive);
text-align: center;
padding: 36px 24px 40px;
}
.security-panel h2 {
margin: 0;
font-family: 'Fredoka', sans-serif;
font-weight: 600;
font-size: clamp(34px, 3.65vw, 70px);
line-height: 1.16;
}
.lock-illus {
position: absolute;
right: 38px;
top: 44px;
width: 116px;
}
/* ---------------- Getting started ---------------- */
.getting-started { margin-top: 355px; }
.section-heading {
margin: 0;
text-align: center;
color: #fff;
font-size: clamp(34px, 3.25vw, 62px);
font-weight: 700;
line-height: 1.0;
letter-spacing: -0.01em;
}
.steps-outer {
overflow-x: auto;
scrollbar-width: none;
}
.steps-outer::-webkit-scrollbar { display: none; }
.steps-strip {
position: relative;
width: 972px;
height: 452px;
margin: 111px 0 0 calc(max(50% - 533px, 8px));
}
.steps-tab {
position: absolute;
left: 0;
top: 40px;
width: 50px;
height: 247px;
background: var(--yellow);
color: var(--ink);
font-size: 16.5px;
font-weight: 700;
writing-mode: vertical-rl;
transform: rotate(180deg);
display: flex;
align-items: center;
justify-content: center;
letter-spacing: 0.01em;
z-index: 1;
}
.step-card {
position: absolute;
overflow: visible;
}
.step-card h3 {
margin: 0;
font-family: 'Fredoka', sans-serif;
font-weight: 500;
letter-spacing: 0.02em;
}
.card-1 {
left: 31px;
top: 0;
width: 245px;
height: 348px;
background: var(--payorange);
text-align: center;
}
.card-1 h3 {
margin-top: 52px;
font-size: 44px;
font-weight: 600;
color: var(--cream);
}
.card-qr-img { width: 122px; margin-top: 16px; }
.card-2 { left: 276px; top: 23px; width: 200px; height: 352px; background: var(--card2); }
.card-3 { left: 452px; top: 53px; width: 200px; height: 347px; background: var(--orange); }
.card-4 { left: 628px; top: 74px; width: 196px; height: 351px; background: var(--card4); }
.card-5 { left: 800px; top: 103px; width: 172px; height: 347px; background: var(--card5); }
.card-2 h3, .card-3 h3, .card-4 h3, .card-5 h3 {
padding: 20px 18px 0;
font-size: 17px;
line-height: 1.32;
color: #fff;
}
.card-2 h3 { color: var(--orange); }
.card-phone { position: absolute; display: block; }
.card-2 .card-phone { width: 105px; left: -1px; top: 189px; }
.card-3 .card-phone { width: 85px; left: -5px; top: 91px; }
.card-4 .card-phone { width: 82px; left: 5px; top: 200px; }
.card-5 .card-phone { width: 128px; left: -17px; top: 144px; }
.card-fold {
position: absolute;
bottom: -17px;
left: 34px;
width: 0;
height: 0;
border-right: 34px solid transparent;
border-top: 17px solid #52092e;
}
.card-1 .card-fold { left: auto; right: 40px; }
.pay-callout {
margin-top: 362px;
text-align: center;
}
.pay-callout .all-on { margin-top: 26px; }
/* ---------------- FAQ ---------------- */
.faq-section { margin-top: 366px; }
.faq-heading { line-height: 1.15; }
.faq-panel {
width: min(690px, 94vw);
min-height: 431px;
margin: 128px auto 0;
background: var(--faqcream);
border-radius: 26px;
display: flex;
color: var(--ink);
}
.faq-chat {
flex: 1;
padding: 26px 20px 24px 28px;
display: flex;
flex-direction: column;
}
.faq-chat-head { display: flex; align-items: center; gap: 13px; }
.faq-chat-head img { width: 35px; height: 36px; }
.faq-chat-head h3 { margin: 0; font-size: 20.5px; font-weight: 700; }
.faq-bubbles {
margin-top: 28px;
display: flex;
flex-direction: column;
gap: 10px;
}
.bubble {
max-width: 85%;
padding: 12px 18px;
font-size: 16px;
border-radius: 15px;
background: #fff;
color: #3d3d3d;
width: fit-content;
}
.bubble-left { border-bottom-left-radius: 3px; }
.bubble-right {
align-self: flex-end;
background: #d9fdd3;
color: #1f2c24;
font-size: 13.5px;
border-bottom-right-radius: 3px;
}
.faq-questions {
width: 312px;
flex: none;
margin: 11px;
background: var(--orange);
border-radius: 22px;
padding: 22px 20px 20px;
}
.faq-questions h3 {
margin: 0;
color: var(--faqyellow);
font-size: 21px;
font-weight: 700;
}
.faq-questions ul {
list-style: none;
margin: 44px 0 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 9px;
}
.faq-questions button {
width: 100%;
text-align: left;
background: var(--faqitem);
border: none;
border-radius: 10px;
color: #fff;
font-size: 14.5px;
font-weight: 700;
line-height: 1.25;
padding: 10px 14px;
transition: filter 0.15s ease, transform 0.15s ease;
}
.faq-questions button:hover { filter: brightness(1.14); }
.faq-questions button:active { transform: scale(0.985); }
/* ---------------- Footer CTA + footer ---------------- */
.footer-cta {
position: relative;
margin-top: 470px;
background: var(--navy);
padding-top: 22px;
overflow: hidden;
}
.pixel-row {
height: 18px;
margin-bottom: 5px;
}
.pr-1 { background: repeating-linear-gradient(90deg, var(--blue) 0 86px, transparent 86px 152px); }
.pr-2 { background: repeating-linear-gradient(90deg, transparent 0 44px, var(--blue) 44px 118px, transparent 118px 196px); }
.pr-3 { background: repeating-linear-gradient(90deg, transparent 0 90px, var(--blue) 90px 148px, transparent 148px 260px); }
.pixel-band { position: absolute; left: 0; right: 0; z-index: 1; }
.band-top { top: 5px; }
.band-mid { top: 324px; }
.pixel-side {
position: absolute;
top: 128px;
width: 300px;
z-index: 1;
}
.pixel-side .pixel-row { margin-bottom: 44px; }
.side-left { left: 0; }
.side-right { right: 0; }
.cta-card {
position: relative;
z-index: 2;
width: min(1256px, 94vw);
height: 316px;
margin: 0 auto;
background: var(--navy);
border-radius: 28px;
}
.cta-card h2 {
margin: 0;
padding: 74px 0 0 78px;
font-size: clamp(34px, 3.45vw, 66px);
font-weight: 700;
line-height: 1.14;
letter-spacing: -0.01em;
color: #fff;
}
.qr-chip-wrap {
display: inline-flex;
background: #fff;
border-radius: 0.16em;
padding: 0.045em;
vertical-align: -0.16em;
}
.cta-card .qr-chip { height: 0.92em; border-radius: 0.12em; vertical-align: 0; }
.cta-phone {
position: absolute;
top: 26px;
right: 112px;
width: 296px;
}
.footer-main {
position: relative;
z-index: 2;
width: min(1220px, 94vw);
margin: 190px auto 0;
display: flex;
gap: 40px;
}
.footer-brand { width: 560px; flex: none; }
.footer-logo { width: 325px; height: auto; display: block; }
.footer-tagline {
margin: 122px 0 0;
color: var(--blue);
font-size: 13px;
line-height: 1.75;
max-width: 330px;
}
.footer-cols {
flex: 1;
display: flex;
}
.footer-col { width: 190px; flex: none; }
.footer-col:last-child { width: auto; }
.footer-col h4 {
margin: 0 0 30px;
color: var(--blue);
font-size: 14px;
font-weight: 700;
white-space: nowrap;
}
.footer-col .col-gap { margin-top: 48px; }
.footer-col ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 20px;
}
.footer-col a {
color: #eef3f8;
font-size: 13.5px;
font-weight: 500;
transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--blue); }
.footer-copy {
margin: 64px 0 0;
color: var(--blue);
font-size: 13px;
white-space: nowrap;
}
.socials { display: flex; gap: 14px; }
.socials a {
color: #eef3f8;
display: flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: 50%;
transition: color 0.15s ease, transform 0.15s ease;
}
.socials a:nth-child(2) { border: 1.6px solid #eef3f8; }
.socials a:hover { color: var(--blue); transform: translateY(-2px); }
.footer-illus {
position: relative;
z-index: 2;
display: block;
width: 100%;
margin-top: 130px;
}
/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
.nav-links { gap: 26px; margin-left: 0; }
.hero-phone { width: 24vw; right: 2vw; }
.panel { padding: 48px 44px 0; }
.panel-pink, .panel-yellow, .panel-orange { height: auto; padding-bottom: 54px; }
.panel-maroon { height: auto; padding-bottom: 54px; }
.panel .banks-label { margin-top: 56px; }
.cta-phone { width: 24vw; right: 3vw; }
.footer-brand { width: 40%; }
.footer-logo { width: 60%; }
.footer-tagline { margin-top: 60px; }
.footer-cols { gap: 40px; }
.scan-callout, .security-section { margin-top: 150px; }
.getting-started, .pay-callout, .faq-section { margin-top: 220px; }
.footer-cta { margin-top: 260px; }
}
@media (max-width: 900px) {
.nav-links { display: none; }
.nav-bar { height: 74px; }
.hero { margin-top: 70px; }
.hero-blocks { font-size: 9vw; }
.hero-phone { display: none; }
.cta-phone { display: none; }
.cta-card { height: auto; padding-bottom: 60px; }
.cta-card h2 { padding: 60px 0 0 40px; }
.lock-illus { position: static; margin: 26px auto 0; display: block; }
.security-panel { padding-bottom: 48px; }
.footer-main { flex-direction: column; margin-top: 90px; }
.footer-brand { width: 100%; }
.footer-tagline { margin-top: 30px; }
.footer-copy { white-space: normal; }
.footer-illus { margin-top: 70px; }
.scan-callout, .security-section, .getting-started, .pay-callout, .faq-section { margin-top: 120px; }
.footer-cta { margin-top: 140px; }
.feature-panels { margin-top: 140px; }
}
@media (max-width: 760px) {
.faq-panel { flex-direction: column; }
.faq-questions { width: auto; }
.bank-row { gap: 8px; }
.bank-row img { height: 22px; }
.callout-heading br { display: none; }
.callout-heading { padding: 0 5vw; }
}