praneethsunkara3
Deploy Naaviverse with OpenAI Codex API
ecb6892
Raw History Blame Contribute Delete
16.1 kB
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #f4f6f9;
--surface: #ffffff;
--border: #e8ecf0;
--border-md: #d0d7e0;
--text: #0f1923;
--text-2: #4a5568;
--text-3: #8a96a3;
--teal: #1a9e75;
--teal-light: #e6f7f2;
--teal-mid: #a8dece;
--blue: #3b82f6;
--blue-light: #eff6ff;
--sans: 'Inter', system-ui, sans-serif;
--r-sm: 6px;
--r-md: 10px;
--r-lg: 16px;
--r-xl: 20px;
--shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
--shadow-md: 0 4px 16px rgba(0,0,0,0.08);
}
body {
font-family: var(--sans);
background: var(--bg);
color: var(--text);
-webkit-font-smoothing: antialiased;
min-height: 100vh;
}
/* ─────────── App Shell ─────────── */
.app {
max-width: 1280px;
margin: 0 auto;
padding: 0 32px 56px;
}
/* ─────────── Nav ─────────── */
.nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 0 16px;
border-bottom: 1px solid var(--border);
margin-bottom: 0;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-mark {
width: 36px; height: 36px;
border-radius: 10px;
background: linear-gradient(135deg, #1a9e75, #2563eb);
color: #fff;
font-size: 17px; font-weight: 700;
display: flex; align-items: center; justify-content: center;
}
.nav-brand { font-size: 16px; font-weight: 700; color: var(--text); }
.nav-pill {
font-size: 12px; font-weight: 500;
color: var(--teal);
background: var(--teal-light);
border: 1px solid var(--teal-mid);
padding: 4px 12px;
border-radius: 100px;
}
/* ─────────── Hero ─────────── */
.hero {
padding: 38px 0 22px;
max-width: 1120px;
margin-bottom: 0;
text-align: center;
}
.hero-eyebrow {
font-size: 11px; font-weight: 600;
letter-spacing: 2px; text-transform: uppercase;
color: var(--teal);
margin-bottom: 12px;
}
.hero-headline {
font-size: 40px; font-weight: 400;
line-height: 1.08; letter-spacing: 0;
color: var(--text);
margin-bottom: 14px;
}
.hero-accent { font-weight: 700; color: var(--teal); }
.hero-accent--nowrap { white-space: nowrap; }
.hero-sub {
font-size: 16px; font-weight: 400;
color: var(--text-2); line-height: 1.6;
max-width: 820px;
margin: 0 auto;
}
/* ─────────── Input ─────────── */
.input-section { padding: 24px 0 0; }
.input-section--starter {
padding: 4px 0 0;
max-width: 980px;
margin: 0 auto;
}
.input-section--compact { padding: 20px 0 0; }
.input-shell {
display: flex; gap: 8px;
background: var(--surface);
border: 1.5px solid var(--border);
border-radius: var(--r-lg);
padding: 6px;
margin-bottom: 12px;
box-shadow: 0 8px 28px rgba(15,25,35,0.08);
transition: border-color 0.2s, box-shadow 0.2s;
}
.input-shell:focus-within {
border-color: var(--teal);
box-shadow: 0 0 0 3px rgba(26,158,117,0.1);
}
.goal-input {
flex: 1; height: 50px;
padding: 0 16px;
background: transparent; border: none; outline: none;
font-size: 16px; font-family: var(--sans);
color: var(--text);
}
.goal-input::placeholder { color: var(--text-3); }
.goal-input:disabled { opacity: 0.5; }
.gen-btn {
height: 50px; padding: 0 30px;
background: var(--teal);
color: #fff; border: none;
border-radius: var(--r-md);
font-size: 14px; font-weight: 600;
font-family: var(--sans);
cursor: pointer; white-space: nowrap;
transition: background 0.15s, transform 0.1s;
}
.gen-btn:hover:not(:disabled) { background: #15876a; }
.gen-btn:active:not(:disabled) { transform: scale(0.98); }
.gen-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-loading { display: flex; align-items: center; gap: 8px; }
.btn-spinner {
width: 14px; height: 14px;
border: 2px solid rgba(255,255,255,0.35);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
font-size: 13px; padding: 8px 16px;
border: 1px solid var(--border);
border-radius: var(--r-md);
background: var(--surface);
color: var(--text-2);
cursor: pointer; font-family: var(--sans);
transition: all 0.15s;
}
.chip:hover:not(:disabled) {
border-color: var(--teal);
color: var(--teal);
background: var(--teal-light);
}
.chip:disabled { opacity: 0.4; cursor: not-allowed; }
/* ─────────── Loading ─────────── */
.loading-state { padding: 48px 0; }
.loading-track {
height: 3px; background: var(--border);
border-radius: 3px; overflow: hidden; margin-bottom: 16px;
}
.loading-bar {
height: 100%; width: 35%;
background: linear-gradient(90deg, var(--teal), #3b82f6);
border-radius: 3px;
animation: slide 1.5s ease-in-out infinite;
}
@keyframes slide {
0% { transform: translateX(-100%); }
100% { transform: translateX(350%); }
}
.loading-msg { font-size: 13px; color: var(--text-3); }
/* ─────────── Error ─────────── */
.error-banner {
background: #fff5f5;
border: 1px solid #fcc;
border-radius: var(--r-md);
padding: 14px 18px;
font-size: 13.5px;
color: #c0392b;
margin-top: 24px;
line-height: 1.6;
}
/* ─────────── Result ─────────── */
.result { animation: fadeUp 0.4s ease both; margin-top: 36px; }
@keyframes fadeUp {
from { opacity: 0; transform: translateY(14px); }
to { opacity: 1; transform: translateY(0); }
}
/* ─────────── Path Header Card ─────────── */
.path-header-card {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 24px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--r-xl);
padding: 32px 36px;
margin-bottom: 40px;
box-shadow: var(--shadow-sm);
}
.path-header-left { flex: 1; }
.path-eyebrow {
display: flex; align-items: center; gap: 8px;
font-size: 11px; font-weight: 700;
letter-spacing: 1.5px; text-transform: uppercase;
color: var(--teal);
margin-bottom: 14px;
}
.path-eyebrow-icon { font-size: 14px; }
.path-name {
font-size: 26px; font-weight: 800;
letter-spacing: -0.5px; line-height: 1.25;
color: var(--text);
text-transform: uppercase;
margin-bottom: 18px;
}
.path-desc {
font-size: 14.5px; color: var(--text-2);
line-height: 1.75; max-width: 680px;
}
.path-steps-badge {
flex-shrink: 0;
background: var(--teal-light);
border: 1px solid var(--teal-mid);
border-radius: var(--r-lg);
padding: 20px 28px;
text-align: center;
min-width: 120px;
}
.badge-num {
display: block;
font-size: 42px; font-weight: 800;
color: var(--teal);
line-height: 1;
margin-bottom: 6px;
}
.badge-label {
font-size: 10px; font-weight: 700;
letter-spacing: 1.5px; text-transform: uppercase;
color: var(--teal);
}
/* ─────────── Steps Section ─────────── */
.steps-section { margin-bottom: 0; }
.steps-header {
display: flex; align-items: center; gap: 12px;
margin-bottom: 28px;
}
.steps-label {
font-size: 11px; font-weight: 700;
letter-spacing: 1.5px; text-transform: uppercase;
color: var(--text-3);
white-space: nowrap;
}
.steps-divider {
flex: 1; height: 1px;
background: var(--border);
}
.steps-count {
font-size: 12px; color: var(--text-3);
white-space: nowrap;
}
/* ─────────── Step Cards Grid ─────────── */
.steps-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 16px;
margin-bottom: 40px;
}
.step-card {
background: var(--surface);
border: 1px solid var(--border);
border-left: 4px solid var(--accent, #1a9e75);
border-radius: var(--r-lg);
padding: 24px 22px;
text-align: left;
cursor: pointer;
font-family: var(--sans);
transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
box-shadow: var(--shadow-sm);
}
.step-card:hover {
box-shadow: var(--shadow-md);
transform: translateY(-2px);
}
.step-card--active {
border-color: var(--accent, #1a9e75);
border-left-color: var(--accent, #1a9e75);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #1a9e75) 15%, transparent);
}
.step-num-circle {
width: 40px; height: 40px;
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-size: 15px; font-weight: 700;
margin-bottom: 16px;
}
.step-title {
font-size: 15px; font-weight: 700;
color: var(--text);
line-height: 1.35;
margin-bottom: 10px;
}
.step-desc {
font-size: 13px; color: var(--text-2);
line-height: 1.65;
}
/* ─────────── Views Section ─────────── */
.views-section {
background: var(--bg);
border-top: 1px solid var(--border);
padding-top: 36px;
margin-bottom: 40px;
animation: fadeUp 0.3s ease;
}
.views-intro { margin-bottom: 28px; }
.views-heading {
font-size: 24px; font-weight: 700;
letter-spacing: -0.3px;
color: var(--text);
margin-bottom: 10px;
}
.views-desc {
font-size: 14.5px; color: var(--text-2); line-height: 1.75;
max-width: 700px;
}
/* ─────────── 3-column views grid ─────────── */
.views-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
/* Base view card */
.view-card {
border-radius: var(--r-xl);
border: 1px solid transparent;
padding: 24px;
display: flex;
flex-direction: column;
gap: 0;
}
.view-card-top {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
padding-bottom: 16px;
border-bottom: 1px solid transparent;
}
/* MACRO β€” purple tint */
.view-card--macro {
background: #f5f3ff;
border-color: #ddd6fe;
}
.view-card--macro .view-card-top { border-bottom-color: #ddd6fe; }
.view-tag--macro { color: #6d28d9; }
.view-badge--free {
font-size: 11px; font-weight: 700;
background: #d1fae5; color: #065f46;
padding: 3px 10px; border-radius: 6px;
letter-spacing: 0.5px;
}
.view-cta--macro {
color: #6d28d9;
border-color: #c4b5fd;
background: #ede9fe;
}
.view-cta--macro:hover { background: #ddd6fe; }
/* MICRO β€” teal tint */
.view-card--micro {
background: #f0fdfa;
border-color: #99f6e4;
}
.view-card--micro .view-card-top { border-bottom-color: #99f6e4; }
.view-tag--micro { color: #0f766e; }
.view-badge--micro {
font-size: 11px; font-weight: 700;
background: #ccfbf1; color: #134e4a;
padding: 3px 10px; border-radius: 6px;
letter-spacing: 0.5px;
}
.view-cta--micro {
color: #0f766e;
border-color: #5eead4;
background: #ccfbf1;
}
.view-cta--micro:hover { background: #99f6e4; }
/* NANO β€” amber tint */
.view-card--nano {
background: #fffbeb;
border-color: #fde68a;
}
.view-card--nano .view-card-top { border-bottom-color: #fde68a; }
.view-tag--nano { color: #b45309; }
.view-badge--nano {
font-size: 11px; font-weight: 700;
background: #fef3c7; color: #92400e;
padding: 3px 10px; border-radius: 6px;
letter-spacing: 0.5px;
}
.view-cta--nano {
color: #b45309;
border-color: #fcd34d;
background: #fef3c7;
}
.view-cta--nano:hover { background: #fde68a; }
/* Shared view card internals */
.view-tag {
font-size: 11px; font-weight: 800;
letter-spacing: 1px; text-transform: uppercase;
}
.view-title {
font-size: 15px; font-weight: 700;
color: var(--text);
line-height: 1.35;
margin-bottom: 12px;
}
.view-sublabel {
font-size: 10px; font-weight: 700;
letter-spacing: 1px; text-transform: uppercase;
color: var(--text-3);
margin-bottom: 8px;
}
.view-body {
font-size: 13px; color: var(--text-2);
line-height: 1.7;
flex: 1;
margin-bottom: 20px;
}
.view-cta {
display: block; width: 100%;
padding: 12px 0;
border-radius: var(--r-md);
border: 1px solid;
font-size: 13px; font-weight: 600;
font-family: var(--sans);
cursor: pointer;
text-align: center;
transition: background 0.15s;
margin-top: auto;
}
/* ─────────── Footer ─────────── */
.result-footer {
display: flex; justify-content: center;
margin-top: 48px;
}
.reset-btn {
font-size: 13px; padding: 10px 22px;
border: 1px solid var(--border);
border-radius: 100px;
background: var(--surface);
color: var(--text-2);
cursor: pointer; font-family: var(--sans);
transition: all 0.15s;
}
.reset-btn:hover {
border-color: var(--teal);
color: var(--teal);
}
/* ─────────── Responsive ─────────── */
@media (max-width: 768px) {
.views-grid { grid-template-columns: 1fr; }
.steps-grid { grid-template-columns: 1fr; }
.path-header-card { flex-direction: column; }
.path-name { font-size: 20px; }
.app { padding: 0 18px 44px; }
.nav { padding: 14px 0; }
.hero { padding: 28px 0 18px; }
.hero-headline { font-size: 32px; text-align: left; }
.hero { text-align: left; }
.hero-sub { margin: 0; }
.hero-accent--nowrap { white-space: normal; }
.input-shell { flex-direction: column; }
.gen-btn { width: 100%; }
}
/* ─────────────────────────────────────────
PASTE THESE RULES AT THE BOTTOM OF App.css
───────────────────────────────────────── */
/* "Tap to explore" hint inside step card */
.step-explore-hint {
display: block;
font-size: 11.5px;
font-weight: 600;
margin-top: 14px;
letter-spacing: 0.3px;
}
/* ── Back bar (top of expanded view) ── */
.views-back-bar {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 28px;
flex-wrap: wrap;
}
.back-btn {
font-size: 13px;
font-weight: 600;
padding: 8px 18px;
border: 1.5px solid var(--border-md);
border-radius: 100px;
background: var(--surface);
color: var(--text-2);
cursor: pointer;
font-family: var(--sans);
transition: all 0.15s;
white-space: nowrap;
}
.back-btn:hover {
border-color: var(--teal);
color: var(--teal);
}
/* ── Step number pill navigator ── */
.step-nav-pills {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.step-nav-pill {
width: 32px;
height: 32px;
border-radius: 50%;
border: 1.5px solid var(--border-md);
background: var(--surface);
color: var(--text-3);
font-size: 13px;
font-weight: 700;
font-family: var(--sans);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s;
}
.step-nav-pill:hover:not(.step-nav-pill--active) {
border-color: var(--teal);
color: var(--teal);
}
.step-nav-pill--active {
font-weight: 800;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* ── Step badge ("Step 2 of 5") ── */
.views-step-badge {
display: inline-flex;
align-items: center;
font-size: 11px;
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
padding: 4px 12px;
border-radius: 100px;
margin-bottom: 10px;
}
/* ── Prev / Next row ── */
.views-nav-row {
display: flex;
justify-content: space-between;
gap: 12px;
margin-top: 32px;
}
.views-nav-btn {
flex: 1;
padding: 12px 20px;
border-radius: var(--r-lg);
border: 1.5px solid var(--border-md);
background: var(--surface);
color: var(--text-2);
font-size: 13.5px;
font-weight: 600;
font-family: var(--sans);
cursor: pointer;
transition: all 0.15s;
}
.views-nav-btn:hover:not(:disabled) {
border-color: var(--teal);
color: var(--teal);
}
.views-nav-btn:disabled {
opacity: 0.3;
cursor: not-allowed;
}
.views-nav-btn--primary {
background: var(--teal);
color: #fff;
border-color: var(--teal);
}
.views-nav-btn--primary:hover:not(:disabled) {
background: #15876a;
border-color: #15876a;
color: #fff;
}