/* Literaria.AI marketing — inner.css
 * Shared styles for inner pages (product, use-cases, pricing, demo, about, contact)
 */

/* ——— Page hero (lighter than home hero) ——— */
.page-hero {
  background: var(--paper-warm);
  padding-block: clamp(5rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  max-width: 64rem;
}

.page-hero h1 {
  font-size: var(--text-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-top: 0.75rem;
  max-width: 22ch;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--burnt);
  font-weight: 400;
}

.page-hero p.lede {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-top: 1.5rem;
  max-width: 56ch;
  color: rgba(26, 35, 50, 0.78);
}

/* ——— Generic content blocks ——— */
.content {
  max-width: 64rem;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature .icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  background: var(--burnt);
  color: var(--paper);
  margin-bottom: 0.4rem;
}

.feature h3 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.feature h3 em {
  font-style: italic;
  color: var(--burnt);
}

.feature p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(26, 35, 50, 0.72);
  max-width: 42ch;
}

/* ——— Workflow detail (product page) ——— */
.workflow-detail {
  display: grid;
  gap: 6rem;
}

.workflow-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 880px) {
  .workflow-row { grid-template-columns: 1fr; }
}

.workflow-row .meta .num {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--burnt);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  display: block;
}

.workflow-row .meta h3 {
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.workflow-row .meta h3 em {
  font-style: italic;
  color: var(--burnt);
}

.workflow-row .meta p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(26, 35, 50, 0.72);
}

.workflow-row .body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.workflow-row .body h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 35, 50, 0.55);
  margin-bottom: 0.4rem;
}

.workflow-row .body p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(26, 35, 50, 0.85);
  max-width: 52ch;
}

.workflow-row .body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.workflow-row .body ul li {
  position: relative;
  padding-left: 1.25rem;
  color: rgba(26, 35, 50, 0.85);
}

.workflow-row .body ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--burnt);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.workflow-row .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.workflow-row .chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  color: rgba(26, 35, 50, 0.75);
}

/* ——— Use cases page ——— */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 880px) {
  .case-grid { grid-template-columns: 1fr; }
}

.case-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-card .vertical {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burnt);
}

.case-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.case-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(26, 35, 50, 0.72);
}

.case-card .driver {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: rgba(26, 35, 50, 0.6);
}

.case-card .driver strong {
  color: var(--ink);
  font-weight: 500;
}

/* ——— Pricing detail ——— */
.tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (max-width: 880px) {
  .tiers { grid-template-columns: 1fr; }
}

.tier-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tier-card.feature {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}

.tier-card.feature h3 em {
  color: var(--burnt-soft);
}

.tier-card h3 {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  font-family: var(--font-display);
}

.tier-card h3 em {
  color: var(--burnt);
  font-style: italic;
}

.tier-card .anchor {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.8;
}

.tier-card .anchor strong {
  font-weight: 600;
  opacity: 1;
}

.tier-card .price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.tier-card .price small {
  font-size: 0.85rem;
  font-family: var(--font-body);
  opacity: 0.65;
  display: block;
  margin-top: 0.4rem;
}

.tier-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.tier-card li {
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.tier-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.tier-card .btn {
  margin-top: auto;
}

/* ——— Demo page ——— */
.demo-frame {
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--ink);
  margin-top: 3rem;
  box-shadow: 0 24px 60px -20px rgba(26, 35, 50, 0.3);
}

.demo-frame .frame-chrome {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  background: rgba(15, 23, 33, 0.95);
  border-bottom: 1px solid var(--line-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(250, 250, 247, 0.6);
}

.demo-frame .frame-chrome .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(250, 250, 247, 0.18);
}

.demo-frame iframe {
  width: 100%;
  height: 720px;
  border: 0;
  background: var(--paper);
  display: block;
}

.demo-frame .iframe-fallback {
  height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink-soft);
  color: var(--paper);
  text-align: center;
  padding: 2rem;
}

.demo-frame .iframe-fallback h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--paper);
}

.demo-frame .iframe-fallback p {
  font-size: 0.95rem;
  color: rgba(250, 250, 247, 0.65);
  max-width: 44ch;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* ——— About page ——— */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-photo {
  border-radius: 0.875rem;
  background:
    radial-gradient(ellipse at 50% 30%, var(--burnt-soft), var(--burnt) 60%, var(--ink) 100%);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 5rem;
  color: var(--paper);
  font-weight: 400;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
}

.about-text h2 em {
  font-style: italic;
  color: var(--burnt);
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(26, 35, 50, 0.78);
  margin-bottom: 1.25rem;
  max-width: 60ch;
}

.about-text p strong {
  color: var(--ink);
  font-weight: 500;
}

/* ——— Contact form ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
}

.contact-info h2 em {
  font-style: italic;
  color: var(--burnt);
}

.contact-info p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(26, 35, 50, 0.78);
  max-width: 50ch;
  margin-bottom: 2rem;
}

.contact-info .quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.contact-info .quick-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-info .quick-list .label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 35, 50, 0.55);
}

.contact-info .quick-list .value {
  font-size: 1rem;
  color: var(--ink);
}

.contact-info .quick-list a.value {
  color: var(--burnt);
  font-weight: 500;
}

form.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

form.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(26, 35, 50, 0.78);
}

form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--burnt);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.18);
}

form.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}

form.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  form.contact-form .form-row { grid-template-columns: 1fr; }
}

form.contact-form button[type="submit"] {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.form-note {
  font-size: 0.75rem;
  color: rgba(26, 35, 50, 0.55);
  margin-top: 0.25rem;
}

/* ——— Section header (inner reuse) ——— */
.inner-section-header {
  max-width: 60ch;
  margin-bottom: 3.5rem;
}

.inner-section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  font-weight: 400;
  font-family: var(--font-display);
}

.inner-section-header h2 em {
  font-style: italic;
  color: var(--burnt);
}

.inner-section-header p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(26, 35, 50, 0.7);
  margin-top: 1rem;
}
