/* SyncFlow landing page. Brand values follow DESIGN.md (primary #0084D4, tint #C6DCEA, dark tint #004670). */
:root {
  --ink: #10202e;
  --body: #233a4d;
  --muted: #4a5b6a;
  --primary: #0084d4;
  --primary-dark: #004670;
  --link: #0070b4;
  --line: #d6e4ee;
  --hero-bg: #eef6fc;
  --soft-bg: #f4f8fb;
  --gold: #f5a400;
  --review-star: #b26b00;
  --media-h: 200px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Noto Sans JP', 'Noto Sans', Tahoma, sans-serif;
  line-height: 1.7;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--primary-dark);
}

h1,
h2,
h3 {
  margin: 0;
  font-feature-settings: 'palt';
  text-wrap: balance;
  word-break: auto-phrase;
}

h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.35;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
}

.ib {
  display: inline-block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.shell {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--hero-bg);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.header-nav .header-cta {
  padding-inline: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

/* Hero */
.hero {
  padding-block: 40px 96px;
  background: var(--hero-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 22px;
  font-weight: 800;
}

.app-row img {
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(16, 32, 46, 0.12);
}

.hero h1 {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.3;
}

.lead {
  max-width: 600px;
  color: var(--body);
  font-size: 19px;
  line-height: 1.85;
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  display: block;
  width: auto;
  height: 56px;
}

.notice {
  max-width: 600px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #ffffff;
  font-size: 15px;
  line-height: 1.7;
}

.notice a {
  font-weight: 700;
  white-space: nowrap;
}

/* Rating: laurel branches around stars, score, and count, as on the paywall. */
.rating {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rating-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.laurel {
  width: 27px;
  height: 68px;
  background: url('/lp/laurel-wreath-cc0.png') no-repeat;
  background-size: auto 100%;
  filter: brightness(0);
  opacity: 0.78;
}

.laurel-left {
  background-position: left center;
}

.laurel-right {
  background-position: right center;
}

.rating-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 110px;
}

.stars {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1;
}

.star-partial {
  background: linear-gradient(90deg, var(--gold) 45%, #cfd6dd 45%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rating-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.rating-count {
  color: var(--body);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.rating-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.phones {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.phone {
  width: 256px;
  aspect-ratio: 256 / 531;
  overflow: hidden;
  border: 10px solid var(--ink);
  border-radius: 44px;
  background: #ffffff;
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Reviews strip overlapping the hero */
.reviews {
  position: relative;
  margin-top: -56px;
}

.reviews-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(16, 32, 46, 0.5);
}

.reviews-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.reviews-label {
  font-size: 16px;
  font-weight: 700;
}

.reviews-note {
  color: var(--muted);
  font-size: 13px;
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f5f9fc;
}

.review-stars {
  color: var(--review-star);
  font-size: 15px;
  letter-spacing: 2px;
}

.review blockquote {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

/* Sections */
.section {
  padding-block: 64px;
}

.section.tinted {
  background: var(--soft-bg);
}

.section > .shell > h2 {
  margin-bottom: 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.footnote {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.card .footnote {
  font-size: 13px;
}

/* What SyncFlow does */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
}

.media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--media-h);
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 14px;
}

.crop {
  width: min(100%, calc(var(--media-h) * var(--a)));
  aspect-ratio: var(--a);
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 12px;
}

.crop img {
  display: block;
  width: calc(100% / var(--cw));
  max-width: none;
  margin-top: calc(-100% * var(--ct) / var(--cw));
  margin-left: calc(-100% * var(--cl) / var(--cw));
}

.crop-outlined {
  border: 1px solid #141413;
}

.crop-widget {
  border-radius: 30px;
}

.data-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  grid-column: 1 / -1;
  padding: 28px;
}

.data-label {
  margin-top: 6px;
}

.data-card .data-label {
  color: var(--ink);
  font-weight: 700;
}

.data-label span {
  margin-inline-start: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 20px 40px;
}

.group-pack {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 18px 32px;
}

.group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.data-card .group-label {
  color: var(--body);
  font-size: 14px;
  font-weight: 700;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 12px 16px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.step h3 {
  margin-top: 6px;
  font-size: 19px;
}

.step p {
  font-size: 15px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

/* Split sections: heading column and content column */
.split {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 56px;
}

.split h2 {
  font-size: 32px;
}

.split-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split-head > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
}

.trust-grid h3 {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 700;
}

.trust-grid p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.limited-use {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Pricing */
.split-head .now-free {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

.pricing {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}

.pricing-caption {
  color: var(--body);
  font-size: 14px;
  font-weight: 700;
}

.price-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid #bfd3e1;
  border-radius: 16px;
  border-spacing: 0;
  border-collapse: separate;
  background: #ffffff;
  font-size: 16px;
}

.price-table th,
.price-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #d3e2ec;
  line-height: 1.6;
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.price-table tbody tr:last-child > * {
  border-bottom: 0;
}

.price-table thead th {
  background: #e3eef6;
  font-weight: 700;
}

.price-table thead th:first-child {
  width: 180px;
}

.price-table thead th.premium {
  background: var(--primary);
  color: #ffffff;
}

.price-table tbody th {
  background: #f5f9fc;
  font-weight: 700;
}

.price-table td.premium {
  border-inline: 2px solid var(--primary);
  background: #eef7fd;
  color: var(--primary-dark);
  font-weight: 700;
}

.price-table tbody tr:last-child td.premium {
  border-bottom: 2px solid var(--primary);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.faq {
  padding: 24px;
  scroll-margin-top: 24px;
}

.faq h3 {
  font-size: 18px;
  line-height: 1.6;
}

.faq p {
  margin-top: 8px;
}

/* Final call to action */
.final-cta {
  padding-block: 8px 48px;
}

.cta-panel {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 40px 48px;
  border-radius: 20px;
  background: var(--primary-dark);
}

.cta-panel > img {
  flex-shrink: 0;
  border-radius: 18px;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
}

.cta-copy h2 {
  color: #ffffff;
}

.cta-copy p {
  color: #d9ecf8;
  font-size: 17px;
}

.cta-panel .store-badge {
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.site-footer .brand {
  font-size: 18px;
}

.site-footer .brand img {
  border-radius: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  gap: 4px 24px;
  font-size: 14px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.language-picker select {
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.copyright {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Sticky App Store bar on phones */
.sticky-cta {
  display: none;
}

@media (max-width: 899px) {
  :root {
    --media-h: 140px;
  }

  h2 {
    font-size: 24px;
  }

  .header-row {
    padding-block: 12px;
  }

  .brand {
    font-size: 18px;
  }

  .header-nav .header-cta {
    display: none;
  }

  .hero {
    padding-block: 16px 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    gap: 16px;
  }

  .app-row {
    display: none;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.35;
  }

  .lead {
    font-size: 16px;
  }

  .store-badge img {
    height: 52px;
  }

  .notice {
    font-size: 14px;
  }

  .laurel {
    width: 24px;
    height: 60px;
  }

  .rating-core {
    width: 104px;
  }

  .rating-value {
    font-size: 22px;
  }

  .rating-note {
    font-size: 13px;
  }

  .phones {
    gap: 14px;
  }

  .phone {
    width: calc(50% - 7px);
    border-width: 8px;
    border-radius: 32px;
  }

  .reviews {
    margin-top: -20px;
  }

  .reviews .shell {
    width: 100%;
  }

  .reviews-panel {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .reviews-head {
    order: 2;
    padding-inline: 16px;
  }

  .reviews-label {
    display: none;
  }

  .reviews-note {
    font-size: 12px;
  }

  .reviews-list {
    display: flex;
    gap: 10px;
    padding: 0 16px 10px;
    overflow-x: auto;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
  }

  .review {
    flex: 0 0 250px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(16, 32, 46, 0.1);
    scroll-snap-align: start;
  }

  .review blockquote {
    font-size: 14px;
  }

  .section {
    padding-block: 40px;
  }

  .section > .shell > h2 {
    margin-bottom: 16px;
  }

  .card h3 {
    font-size: 19px;
  }

  .card p {
    font-size: 15px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature,
  .data-card {
    padding: 20px;
  }

  .crop-widget {
    border-radius: 22px;
  }

  .groups {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .group-pack {
    gap: 16px 22px;
  }

  .tag {
    font-size: 14px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step {
    padding: 18px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .split h2 {
    font-size: 24px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .limited-use {
    margin-top: 16px;
    font-size: 13px;
  }

  .price-table {
    font-size: 14px;
  }

  .price-table th,
  .price-table td {
    padding: 12px 10px;
  }

  .price-table thead th:first-child {
    width: 30%;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq {
    padding: 18px;
  }

  .faq h3 {
    font-size: 16px;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 28px 22px;
  }

  .cta-panel > img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .cta-copy p {
    font-size: 15px;
  }

  .site-footer {
    padding-block: 20px 88px;
  }

  .footer-links {
    flex-direction: column;
    gap: 0;
  }

  .sticky-cta:not([hidden]) {
    position: fixed;
    inset-inline: 12px;
    bottom: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(16, 32, 46, 0.12);
  }

  .sticky-cta > img {
    flex-shrink: 0;
    border-radius: 9px;
  }

  .sticky-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    font-size: 13px;
    line-height: 1.4;
  }

  .sticky-text span {
    color: var(--muted);
  }

  .sticky-get {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 16px;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  .sticky-close {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
  }
}
