/* ==========================================================================
   Sotto LP — shared styles
   Brand gradient: #4F46E5 (indigo) -> #8B5CF6 (violet)
   ========================================================================== */

:root {
  --indigo: #4f46e5;
  --violet: #8b5cf6;
  --gradient: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 100%);

  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --surface: #ffffff;
  --surface-alt: #f2f1fb;
  --text: #17172b;
  --text-muted: #5c5c72;
  --border: rgba(23, 23, 43, 0.09);
  --shadow: 0 12px 32px rgba(79, 70, 229, 0.12);
  --shadow-sm: 0 4px 14px rgba(23, 23, 43, 0.06);
  --pro-bg: #17172b;
  --pro-text: #ffffff;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101018;
    --bg-soft: #15151f;
    --surface: #1a1a26;
    --surface-alt: #1e1e2c;
    --text: #f2f2f7;
    --text-muted: #a3a3b8;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
    --pro-bg: #ffffff;
    --pro-text: #17172b;

    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", -apple-system,
    BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 760px;
}

/* ---------------------------------- nav ---------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__mark svg {
  width: 17px;
  height: 17px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  display: none;
}

@media (min-width: 640px) {
  .nav__cta {
    display: inline-flex;
  }
}

/* --------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.22);
}

.btn--ghost {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--indigo);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn--disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--indigo);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.badge--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

/* ---------------------------------- hero ---------------------------------- */

.hero {
  padding: 64px 0 40px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto 0;
  height: 480px;
  background: radial-gradient(
    60% 60% at 50% 0%,
    rgba(139, 92, 246, 0.16),
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
  }
}

.hero__eyebrow {
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 50px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.hero__note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ------------------------------ mockup visual ------------------------------ */

.mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow);
  max-width: 380px;
  margin: 0 auto;
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.mockup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.mockup__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 4px;
}

.mockup__bubble {
  background: var(--surface-alt);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 82%;
  margin-bottom: 16px;
}

.mockup__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup__suggestion {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--bg);
}

.mockup__suggestion:last-child {
  margin-bottom: 0;
}

.mockup__tone {
  font-size: 11px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 4px;
}

.mockup__text {
  font-size: 13.5px;
  color: var(--text);
}

.mockup__keyboard {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup__keyboard-hint {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup__ai-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup__ai-btn svg {
  width: 15px;
  height: 15px;
  color: #fff;
}

/* --------------------------------- sections -------------------------------- */

section {
  padding: 64px 0;
}

.section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.section__kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section__head h2 {
  font-size: clamp(24px, 3.6vw, 32px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section__head p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------------------------------- steps ---------------------------------- */

.steps {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.step__num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.step p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
}

/* -------------------------------- feature grid ------------------------------ */

.features {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}

.feature__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--indigo);
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 16.5px;
  margin: 0 0 8px;
}

.feature p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------- pricing --------------------------------- */

.pricing {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  border-radius: 24px;
  padding: 30px 26px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.plan--pro {
  background: var(--pro-bg);
  color: var(--pro-text);
  border-color: transparent;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.plan--pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 100% at 100% 0%,
    rgba(139, 92, 246, 0.35),
    transparent 60%
  );
  pointer-events: none;
}

.plan__name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.plan--pro .plan__name {
  color: rgba(255, 255, 255, 0.65);
}

@media (prefers-color-scheme: dark) {
  .plan--pro .plan__name {
    color: rgba(23, 23, 43, 0.55);
  }
}

.plan__price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.plan__price span {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.6;
}

.plan__sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.plan--pro .plan__sub {
  color: rgba(255, 255, 255, 0.72);
}

@media (prefers-color-scheme: dark) {
  .plan--pro .plan__sub {
    color: rgba(23, 23, 43, 0.68);
  }
}

.plan__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.plan__list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--indigo);
}

.plan--pro .plan__list svg {
  color: var(--violet);
}

.plan__btn {
  width: 100%;
}

/* ----------------------------------- faq ----------------------------------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .chev {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq details[open] summary .chev {
  transform: rotate(180deg);
}

.faq p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-muted);
}

/* -------------------------------- final cta -------------------------------- */

.cta-band {
  border-radius: 28px;
  background: var(--gradient);
  padding: 52px 32px;
  text-align: center;
  color: #fff;
}

.cta-band h2 {
  font-size: clamp(22px, 3.6vw, 30px);
  margin: 0 0 12px;
}

.cta-band p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.85);
}

.cta-band .btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------- footer ---------------------------------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  margin-top: 20px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
}

.footer__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer__links {
  display: flex;
  gap: 20px;
  font-size: 13.5px;
  font-weight: 600;
}

.footer__links a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--text);
}

.footer__copy {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 24px;
}

/* ------------------------------- legal pages -------------------------------- */

.legal {
  padding: 56px 0 80px;
}

.legal h1 {
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 6px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 18px;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.legal h2:first-of-type {
  margin-top: 8px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 15px;
}

.legal ul {
  padding-left: 22px;
  margin: 8px 0;
}

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--text);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.legal th {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 700;
}

.legal .table-wrap {
  overflow-x: auto;
  border-radius: 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--indigo);
  text-decoration: none;
  margin-bottom: 28px;
}

.back-link svg {
  width: 14px;
  height: 14px;
}

/* ------------------------------ misc utilities ------------------------------ */

.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}
