/* PublicMe.app — landing styles */
:root {
    --teal:   #1FA39A;
    --purple: #6B2D8C;
    --orange: #F2762E;
    --coral:  #E94E4E;
    --ink:    #1F2937;
    --ink-2:  #4B5563;
    --paper:  #FFFFFF;
    --mist:   #F6F7FB;
    --line:   #E5E7EB;

    --grad: linear-gradient(135deg, var(--teal) 0%, var(--purple) 55%, var(--orange) 100%);
    --shadow-1: 0 1px 2px rgba(17,24,39,.06), 0 2px 8px rgba(17,24,39,.06);
    --shadow-2: 0 10px 30px rgba(17,24,39,.10), 0 4px 10px rgba(17,24,39,.06);

    --radius: 14px;
    --radius-lg: 22px;
    --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Nav */
.nav {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__name { font-size: 20px; letter-spacing: -.01em; }
.brand__accent { color: var(--orange); }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { color: var(--ink-2); font-weight: 500; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
    border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-1); }
.btn--primary:hover { box-shadow: var(--shadow-2); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-2); }

/* Hero */
.hero {
    position: relative;
    padding: 72px 0 64px;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(31,163,154,.18), transparent 60%),
        radial-gradient(800px 400px at 0% 10%, rgba(107,45,140,.14), transparent 60%),
        var(--paper);
    overflow: hidden;
}
.hero__grid {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.eyebrow {
    display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--purple); font-weight: 700; padding: 6px 12px;
    background: rgba(107,45,140,.08); border-radius: 999px; margin-bottom: 16px;
}
.hero h1 {
    font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 0 0 16px;
    letter-spacing: -.02em;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 18px; color: var(--ink-2); max-width: 52ch; margin: 0 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips li {
    font-size: 13px; color: var(--ink-2); background: var(--mist);
    border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
}

.hero__art {
    position: relative; aspect-ratio: 1/1; max-width: 460px; justify-self: end;
    display: grid; place-items: center;
}
.hero__art .glow {
    position: absolute; inset: 8%;
    background: var(--grad); filter: blur(60px); opacity: .35; border-radius: 50%;
}
.hero__logo {
    position: relative; width: 88%; height: auto;
    filter: drop-shadow(0 20px 40px rgba(31,163,154,.25));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Sections */
.section__title {
    font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.015em;
    margin: 0 0 8px; text-align: center;
}
.section__sub { text-align: center; color: var(--ink-2); margin: 0 auto 40px; max-width: 60ch; }

/* Features */
.features { padding: 80px 0; background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards {
    display: grid; gap: 22px;
    grid-template-columns: repeat(3, 1fr);
}
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px; box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card h3 { margin: 14px 0 8px; font-size: 20px; }
.card p { color: var(--ink-2); margin: 0; }
.card__icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--grad); position: relative;
    box-shadow: 0 6px 16px rgba(31,163,154,.25);
}
.card__icon::before {
    content: ""; position: absolute; inset: 0;
    background-repeat: no-repeat; background-position: center; background-size: 24px 24px;
}
.card__icon[data-icon="link"]::before  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 1 0-7.07-7.07l-1 1'/><path d='M14 11a5 5 0 0 0-7.07 0l-3 3A5 5 0 1 0 11 21.07l1-1'/></svg>"); }
.card__icon[data-icon="bolt"]::before  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='white'><path d='M13 2L3 14h7l-1 8 10-12h-7l1-8z'/></svg>"); }
.card__icon[data-icon="chat"]::before  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>"); }

/* How */
.how { padding: 80px 0; }
.steps {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr);
}
.steps li {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px; position: relative;
}
.steps__num {
    display: inline-grid; place-items: center; width: 36px; height: 36px;
    border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700;
    margin-bottom: 12px;
}
.steps h3 { margin: 6px 0 8px; font-size: 19px; }
.steps p { margin: 0; color: var(--ink-2); }
.steps code { background: var(--mist); padding: 2px 6px; border-radius: 6px; }

/* Waitlist */
.waitlist {
    padding: 88px 0; color: #fff;
    background: var(--grad);
    text-align: center;
}
.waitlist h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 8px; letter-spacing: -.015em; }
.waitlist > .container > p { color: rgba(255,255,255,.92); margin: 0 auto 28px; max-width: 50ch; }
.waitlist__form {
    display: flex; gap: 8px; max-width: 520px; margin: 0 auto;
    background: rgba(255,255,255,.14); padding: 6px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px);
}
.waitlist__form input[type="email"] {
    flex: 1; border: 0; outline: 0; padding: 12px 16px; border-radius: 999px;
    background: #fff; color: var(--ink); font-size: 15px; min-width: 0;
}
.waitlist__form .btn--primary {
    background: var(--ink); color: #fff;
}
.waitlist__form .btn--primary:hover { background: #0f172a; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.fineprint { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.85); }

.flash {
    max-width: 520px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 12px;
    font-weight: 500; text-align: left;
}
.flash--ok  { background: rgba(255,255,255,.95); color: #065f46; border: 1px solid #a7f3d0; }
.flash--err { background: rgba(255,255,255,.95); color: #991b1b; border: 1px solid #fecaca; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--line); background: var(--paper); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; }
.footer__links { display: flex; gap: 18px; }
.footer__links a { color: var(--ink-2); font-size: 14px; }

/* Legal pages (privacy / terms) */
.legal { max-width: 820px; padding: 56px 24px 80px; }
.legal__header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal__header h1 {
    font-size: clamp(32px, 4vw, 44px); margin: 8px 0 8px; letter-spacing: -.015em;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legal__meta { color: var(--ink-2); font-size: 14px; margin: 0; }
.legal section { margin: 28px 0; }
.legal h2 { font-size: 22px; margin: 0 0 12px; letter-spacing: -.01em; }
.legal h3 { font-size: 17px; margin: 18px 0 8px; color: var(--ink); }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.legal ul, .legal ol { padding-left: 22px; margin: 8px 0 12px; }
.legal li { margin: 6px 0; }
.legal code {
    background: var(--mist); border: 1px solid var(--line);
    padding: 1px 6px; border-radius: 6px; font-size: 13.5px;
}
.legal a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--orange); }
.legal__notice {
    background: var(--mist); border-left: 4px solid var(--teal);
    padding: 12px 16px; border-radius: 6px; font-size: 14.5px;
}
.legal__table {
    width: 100%; border-collapse: collapse; margin: 8px 0 8px;
    border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
    background: #fff;
}
.legal__table th, .legal__table td {
    text-align: left; padding: 10px 12px; font-size: 14.5px;
    border-bottom: 1px solid var(--line); vertical-align: top;
}
.legal__table thead th { background: var(--mist); color: var(--ink); font-weight: 600; }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__back {
    margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero { padding: 56px 0 40px; }
    .hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .hero__art { order: -1; max-width: 280px; justify-self: center; }
    .cards, .steps { grid-template-columns: 1fr; }
    .nav__links a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
    .waitlist__form { flex-direction: column; border-radius: 18px; padding: 10px; }
    .waitlist__form input[type="email"] { border-radius: 12px; }
    .waitlist__form .btn--primary { border-radius: 12px; }
}
