/* AmSha Labs – shared styles */
:root {
  --coral: #F2735F;
  --coral-dark: #B8432F;   /* accessible coral for links/text on light bg */
  --blush: #FBC7BB;
  --cream: #FFF4F1;
  --charcoal: #2B2B2B;
  --muted: #5A4A47;
  --line: #F1DDD7;
  --white: #FFFFFF;
  --radius: 12px;
  --max: 980px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--coral-dark); text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--charcoal); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: radial-gradient(circle at center, var(--blush) 0 12.5px, var(--coral) 13px); color: var(--charcoal); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.logo span.sha { color: var(--coral-dark); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--charcoal); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--coral-dark); }

/* Hero */
.hero { background: var(--cream); padding: 44px 0 40px; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--coral-dark); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 24px; }

.btn { display: inline-block; background: var(--coral); color: var(--charcoal); font-weight: 600; text-decoration: none; padding: 13px 24px; border-radius: 10px; border: 0; font-size: 16px; cursor: pointer; font-family: inherit; }
.btn:hover { background: #E8604B; color: var(--charcoal); }
.btn-ghost { background: var(--white); border: 1.5px solid var(--charcoal); margin-left: 10px; }
.btn-ghost:hover { background: var(--charcoal); color: var(--white); }

/* Sections */
section { padding: 44px 0; }
.section-title { font-size: 30px; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-sub { color: var(--muted); margin: 0 0 22px; }

.app-card { display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--white); position: relative; overflow: hidden; }
.app-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--coral); }
.app-icon { width: 88px; height: 88px; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 16px rgba(118,81,168,.25); }
.app-icon img { width: 100%; height: 100%; display: block; }
.card-spark { width: 170px; height: auto; }
.app-card h3 { margin: 0 0 4px; font-size: 22px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; background: var(--cream); color: var(--coral-dark); border: 1px solid var(--blush); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.app-card p { margin: 0 0 14px; color: var(--muted); }
.app-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; font-weight: 500; }

.about { background: var(--cream); }
.about p { max-width: 640px; color: var(--muted); }

/* Legal / content pages */
.page-head { background: var(--cream); padding: 32px 0 26px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 420px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 200' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23F2735F' stroke-width='2' stroke-linecap='round' opacity='.45'%3E%3Cpath d='M0 150 C 90 90 150 190 240 120 S 360 40 420 70'/%3E%3Cpath d='M0 180 C 100 120 170 210 260 150 S 370 80 420 100' opacity='.6'/%3E%3C/g%3E%3C/svg%3E") no-repeat right center / 100% 100%; pointer-events: none; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; }
.page-head p { margin: 0; color: var(--muted); }
.breadcrumb { font-size: 14px; margin-bottom: 14px; }
.breadcrumb a { text-decoration: none; }

.content { padding: 28px 0 48px; }
.content h2 { font-size: 21px; margin: 28px 0 8px; display: flex; align-items: center; gap: 10px; }
.content h2::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--coral); flex: none; }
.content h3 { font-size: 17px; margin: 18px 0 4px; }
.content ul { padding-left: 22px; }
.content li { margin-bottom: 6px; }
.callout { background: var(--cream); border-left: 4px solid var(--coral); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.callout p { margin: 0; }

table.data { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--cream); font-weight: 600; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 12px; background: var(--white); }
details[open] { padding-bottom: 14px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--coral-dark); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 8px; color: var(--muted); }

/* Form */
.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--cream); margin-top: 16px; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.hint { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--charcoal);
  border: 1.5px solid #E5CFC8; border-radius: 10px; background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(242,115,95,.25); }
textarea { min-height: 150px; resize: vertical; }
.hidden { position: absolute; left: -9999px; }
.small { font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--coral-dark); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Line-art additions */
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; position: relative; z-index: 1; }
.hero-art { width: 100%; max-width: 400px; justify-self: center; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-lines path { fill: none; stroke: var(--blush); stroke-width: 2; }
.hero-lines path + path { stroke-dasharray: 2 9; stroke-linecap: round; }
.bars { display: flex; gap: 6px; align-items: center; margin-bottom: 14px; }
.bars span { height: 4px; border-radius: 2px; background: var(--coral); }
.bars span:nth-child(1) { width: 34px; }
.bars span:nth-child(2) { width: 16px; background: var(--charcoal); }
.bars span:nth-child(3) { width: 8px; background: var(--blush); }
.ln { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.ln-coral { stroke: var(--coral); }
.ln-ink { stroke: var(--charcoal); }
.ln-line { stroke: var(--line); stroke-width: 2; }
.thin { stroke-width: 2; }
.thick { stroke-width: 4; }
.dash { stroke: #E5CFC8; stroke-width: 2; stroke-dasharray: 3 6; }
.phone, .outline { fill: var(--white); stroke: var(--charcoal); stroke-width: 3.5; stroke-linejoin: round; }
.fill-coral { fill: var(--coral); }
.fill-blush { fill: var(--blush); }
.fill-ink { fill: var(--charcoal); }
.fill-white { fill: var(--white); }
.dots circle { fill: var(--charcoal); opacity: .35; }
.section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head .section-title, .section-head .section-sub { margin: 0; }
.section-title { position: relative; padding-left: 16px; }
.section-title::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 4px; border-radius: 2px; background: var(--coral); }
.about { background-color: var(--cream); background-image: radial-gradient(#F1DDD7 1.2px, transparent 1.2px); background-size: 18px 18px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.value { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.value svg { width: 40px; height: 40px; fill: none; stroke: var(--charcoal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.value svg .fill-coral { stroke: none; }
.value h3 { margin: 0 0 4px; font-size: 18px; }
.value p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.about-contact { margin: 18px 0 0; color: var(--muted); }
details { margin-bottom: 8px; }
summary { padding: 12px 0; }
summary::after { top: 9px; }
.form-card { padding: 22px; }
.field { margin-bottom: 14px; }

/* App product page */
.product-head { display: flex; align-items: center; gap: 20px; }
.product-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 20px rgba(118,81,168,.28); flex: none; }
.product-head h1 { margin: 0 0 2px; }
.product-head p { margin: 0 0 8px; }
.product-head .tag { margin: 0; }
.product-lead { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 0 22px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.feature svg, .value svg { width: 40px; height: 40px; fill: none; stroke: var(--charcoal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.feature svg .fill-coral { stroke: none; }
.feature h3 { margin: 0 0 4px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.product-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.note-card { background: var(--cream); border-radius: var(--radius); padding: 16px 20px; border-left: 4px solid var(--coral); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.note-card h3 { margin: 0 0 4px; font-size: 17px; }
.note-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.disclaimer { font-size: 13px; color: var(--muted); margin: 22px 0 0; max-width: 760px; }
.app-card h3 a { color: inherit; text-decoration: none; }
.app-card h3 a:hover { color: var(--coral-dark); }
.footer-note { width: 100%; font-size: 12.5px; margin: 0; }

@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
  .app-card { grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 20px; }
  .app-icon { width: 64px; height: 64px; border-radius: 16px; }
  .card-spark { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 220px; margin: 8px auto 0; }
  .values { grid-template-columns: 1fr; }
  .features, .product-notes { grid-template-columns: 1fr; }
  .product-head { gap: 14px; }
  .product-icon { width: 72px; height: 72px; border-radius: 17px; }
  .btn-ghost { margin: 12px 0 0; }
  section { padding: 36px 0; }
  .hero { padding: 32px 0 28px; }
}
