@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Sora:wght@400;500;600;700&display=swap");

:root {
  --ink: #0a1628;
  --ink-soft: #1a2d45;
  --paper: #f7f4ef;
  --paper-2: #ebe6dc;
  --line: #cfc7b8;
  --accent: #0d7a6f;
  --accent-deep: #085a52;
  --warn: #9a3412;
  --ok: #166534;
  --shadow: 0 18px 50px rgba(10, 22, 40, 0.12);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(13, 122, 111, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(154, 52, 18, 0.08), transparent 50%),
    linear-gradient(180deg, #fbf9f5 0%, var(--paper) 40%, var(--paper-2) 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea,
input {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 0;
}

.nav-links {
  display: flex;
  gap: 0.95rem;
  align-items: center;
}

.nav-auth {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.nav a {
  opacity: 0.8;
}

.nav a:hover {
  opacity: 1;
}

.nav .btn {
  opacity: 1;
}

.btn-compact {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.22rem 0.7rem 0.22rem 0.28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  opacity: 1 !important;
  max-width: min(22rem, 38vw);
  line-height: 1;
}

.account-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.account-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  flex-shrink: 0;
}

.header-plan {
  letter-spacing: 0.06em;
}

.plan-badge-pro {
  background: var(--accent);
  color: #fff;
}

.otp-input {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.35em;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.1rem;
}

.alert-error {
  border-color: rgba(154, 52, 18, 0.35);
  background: rgba(154, 52, 18, 0.08);
  color: var(--warn);
}

.alert-ok {
  border-color: rgba(22, 101, 52, 0.3);
  background: rgba(22, 101, 52, 0.08);
  color: var(--ok);
}

.pricing-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 0.65rem;
  min-height: auto;
}

.pricing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pricing-card h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.25rem;
}

.pricing-amount {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.pricing-amount span {
  font-size: 0.9rem;
  font-weight: 500;
}

.pricing-card ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.6;
}

.pricing-card .btn {
  margin-top: 0.35rem;
  justify-self: start;
}

.account-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 0.65rem;
}

.account-card-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.account-card-row span {
  opacity: 0.7;
}

@media (max-width: 800px) {
  .site-header {
    flex-wrap: wrap;
  }
  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
    width: 100%;
  }
  .nav-links {
    gap: 0.55rem;
  }
  .account-email {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 122, 111, 0.28);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.55);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
  min-height: calc(100vh - 72px);
  display: grid;
  align-content: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.hero.hero-home {
  min-height: auto;
  padding: 2.25rem 1.5rem 1rem;
  align-content: start;
}

.home-converter {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -5% auto auto;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  border-radius: 40% 60% 55% 45%;
  background:
    linear-gradient(145deg, rgba(13, 122, 111, 0.22), rgba(10, 22, 40, 0.08)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(10, 22, 40, 0.03) 10px,
      rgba(10, 22, 40, 0.03) 11px
    );
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  animation: rise 0.7s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: var(--ink-soft);
  animation: rise 0.7s ease 0.08s both;
}

.hero p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(10, 22, 40, 0.78);
  animation: rise 0.7s ease 0.16s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  animation: rise 0.7s ease 0.24s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(-18px, 22px) rotate(6deg);
  }
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.page-lead {
  margin: 0 0 1.5rem;
  color: rgba(10, 22, 40, 0.72);
}

.convert-shell {
  display: grid;
  gap: 1rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.pills {
  display: inline-flex;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.pill {
  border: 0;
  background: transparent;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(10, 22, 40, 0.65);
  text-decoration: none;
  display: inline-block;
}

a.pill:hover {
  color: var(--ink);
}

.pill.active {
  background: var(--ink);
  color: #fff;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: rgba(10, 22, 40, 0.7);
}

.panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .panels {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 280px;
}

.panel label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.7;
}

.panel textarea {
  flex: 1;
  min-height: 260px;
  resize: vertical;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  line-height: 1.55;
  color: var(--ink);
}

.panel textarea:focus {
  outline: 2px solid rgba(13, 122, 111, 0.35);
  border-color: var(--accent);
}

.panel.unicode textarea {
  font-family: "Mangal", "Noto Sans Devanagari", var(--font-body), sans-serif;
  font-size: 1.15rem;
}

.panel.devlys textarea {
  font-family: "DevLys 010", "Kruti Dev 010", Consolas, monospace;
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hint {
  font-size: 0.88rem;
  color: rgba(10, 22, 40, 0.68);
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.45);
}

.footer-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-col {
  display: grid;
  gap: 0.25rem;
}

.footer-muted {
  opacity: 0.65;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  opacity: 0.85;
}

.footer-links a:hover {
  color: var(--accent-deep);
}

.announce-banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.home-below {
  padding-top: 0;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.demo-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 0.5rem 0 1rem;
}

@media (max-width: 700px) {
  .demo-strip {
    grid-template-columns: 1fr;
  }
  .demo-arrow {
    justify-self: center;
  }
}

.demo-pane {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  min-height: 7rem;
}

.demo-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.demo-typewriter {
  font-family: Consolas, monospace;
  margin: 0;
  animation: pulseSoft 2.8s ease-in-out infinite;
}

.demo-result {
  margin: 0;
  font-family: "Mangal", "Noto Sans Devanagari", sans-serif;
  font-size: 1.25rem;
  animation: rise 0.8s ease both;
}

.demo-arrow {
  font-size: 1.4rem;
  opacity: 0.45;
  font-weight: 700;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.benefit {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.benefit h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.benefit p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(10, 22, 40, 0.75);
}

.home-plans .plan-teaser,
.plan-teaser {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.plan-teaser h3 {
  font-family: var(--font-display);
  margin: 0;
}

.plan-price {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0.35rem 0;
}

.legal-body {
  max-width: 40rem;
  line-height: 1.65;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

@keyframes pulseSoft {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.field-input {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
}

.signup-channels {
  display: grid;
  gap: 1rem;
}

.signup-channel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.72);
}

.signup-channel.is-done {
  border-color: var(--ok);
}

.signup-channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.signup-channel h2 {
  margin: 0;
  font-size: 1rem;
}

.channel-status {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ok);
}

.signup-channel-copy {
  margin: 0.4rem 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.signup-channel-form {
  display: grid;
  gap: 0.7rem;
}

@media (max-width: 900px) {
  .nav .btn-primary {
    display: none;
  }
}

