/* Poipiku guide – flat blue/white design measured from the source (design-source/source/computed-styles.json) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  --primary: #3498db;          /* measured: body/hero/CTA band + link + button text */
  --primary-dark: #2a7fb9;     /* hover (≈ 12% darker) */
  --header-bg: #ffffff;        /* measured: fixed white header */
  --bg: #3498db;               /* measured: page background */
  --surface: #ffffff;          /* measured: content card / footer */
  --surface-2: #d8f0f7;        /* measured: light chip (AnalogicoInfo.Float) */
  --text: #6d6965;             /* measured: input / muted text on white */
  --text-muted: #6d6965;
  --green: #3498db;
  --red: #e03c31;
  --border: #dddddd;           /* measured: header + list borders */
  --radius-sm: 4px;            /* measured: buttons */
  --radius-md: 5px;            /* measured: header search box */
  --radius-lg: 5px;
  --radius-xl: 25px;           /* measured: search pill */
  --shadow-card: none;         /* measured: source is flat, no shadows */
  --shadow-lg: 0 2px 6px rgba(0,0,0,.12);   /* dropdown panels only */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);   /* source: .3s ease-in; ease-out curve used instead (ease-in delays feedback) */
  --dur-md: .25s;
  --dur-fast: .16s;
  --transition: .2s var(--ease);
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --font: Verdana, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; }
body { font-family: var(--font); font-size: 15px; line-height: 1.75; color: #fff; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.3; }
p { margin: 0 0 12px; }

/* ─── HEADER (white, 50px, 1px #ddd border, sticky) ─── */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--header-bg); border-bottom: 1px solid var(--border); }
.nav { max-width: 990px; margin: 0 auto; display: flex; align-items: center; padding: 0 var(--space-sm); height: 50px; gap: var(--space-sm); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 32px; width: auto; max-width: 160px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-links > li > a, .dropdown-toggle {
  color: var(--primary); font-size: 14px; padding: 8px 12px; border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition); white-space: nowrap;
}
.nav-links > li > a:hover { background: var(--surface-2); text-decoration: none; }
.nav-right { display: flex; align-items: center; flex-shrink: 0; margin-left: auto; }
.mobile-lang { display: none; }

/* ─── DROPDOWN (bridge-correct: top:100% + padding-top, no margin gap) ─── */
.dropdown { position: relative; }
.dropdown-panel { position: absolute; top: 100%; right: 0; margin-top: 0; padding-top: 6px; display: none; min-width: 160px; z-index: 1000; }
.dropdown-panel-inner { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a { display: block; padding: 10px 16px; color: var(--primary); font-size: 14px; white-space: nowrap; transition: background-color var(--transition); }
.dropdown-panel a:hover { background: var(--surface-2); text-decoration: none; }

/* ─── BUTTONS (measured .BtnBase.Rev: white fill, 1px blue border, blue text, radius 4) ─── */
.btn-cta {
  background: #fff; color: var(--primary); border: 1px solid var(--primary);
  padding: 7px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 400;
  transition: background-color var(--transition), color var(--transition), transform var(--dur-fast) var(--ease);
  white-space: nowrap; display: inline-block; cursor: pointer;
}
.btn-cta:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-cta:active { transform: scale(.97); }
.btn-cta.btn-lg { min-width: 200px; padding: 8px 24px; font-size: 16px; text-align: center; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--primary); font-size: 22px; padding: 6px; order: 99; }

/* ─── HERO / BLUE BANDS (flat #3498db, white text) ─── */
.hero { background: var(--primary); color: #fff; text-align: center; padding: 75px var(--space-sm) 80px; }
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero-mark { width: 96px; height: 96px; margin: 0 auto var(--space-sm); }
.hero-badge { display: inline-block; color: #fff; border: 1px solid rgba(255,255,255,.7); padding: 3px 16px; border-radius: var(--radius-xl); font-size: 13px; margin-bottom: var(--space-sm); }
.hero h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 700; margin-bottom: 8px; color: #fff; }
.hero p { font-size: 16px; color: #fff; margin: 0 auto var(--space-md); max-width: 680px; }
.hero-cta-group { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }
.page-hero { background: var(--primary); color: #fff; text-align: center; padding: 56px var(--space-sm) 60px; }
.page-hero h1 { font-size: clamp(24px, 3.6vw, 30px); font-weight: 700; margin-bottom: 8px; color: #fff; }
.page-hero p { font-size: 16px; color: #fff; max-width: 700px; margin: 0 auto var(--space-sm); }
time.updated { display: inline-block; margin: 0 0 var(--space-sm); font-size: 13px; color: rgba(255,255,255,.85); }

/* ─── SECTIONS: white card (blue text) alternating with blue bands (white text) ─── */
.section { padding: 56px var(--space-sm); background: #fff; color: var(--text); border-bottom: 1px solid #f3f3f3; }
.section-alt { background: var(--primary); color: #fff; border-bottom: 0; }
.container { max-width: 990px; margin: 0 auto; }
.section-title { font-size: clamp(20px, 3vw, 24px); font-weight: 700; margin-bottom: 8px; color: var(--primary); text-align: center; }
.section-alt .section-title { color: #fff; }
.section-sub { max-width: 720px; margin: 0 auto var(--space-md); text-align: center; color: var(--text-muted); font-size: 15px; }
.section-alt .section-sub { color: rgba(255,255,255,.92); }
.section p { max-width: 760px; margin-left: auto; margin-right: auto; }
.section-alt a:not(.btn-cta) { color: #fff; text-decoration: underline; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-md); }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-md); transition: border-color var(--transition), transform var(--transition); }
.feature-card:hover { border-color: var(--primary); }
.feature-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: var(--space-sm); color: var(--primary); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; max-width: none; }

.bullets { padding-left: 20px; list-style: disc; max-width: 760px; margin: 12px auto; }
.bullets li { margin: 6px 0; }

/* ─── PRICING ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); max-width: 760px; margin: 0 auto; }
.pricing-card { background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-md); text-align: center; transition: border-color var(--transition), transform var(--transition); }
.pricing-card:hover { border-color: var(--primary); }
.pricing-name { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.pricing-price { font-size: 30px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.pricing-period { font-size: 13px; color: var(--text-muted); margin: 6px 0 var(--space-sm); }
.pricing-card .bullets { text-align: left; font-size: 14px; }
.pricing-cta { margin-top: var(--space-sm); }
.pricing-card .btn-cta { background: var(--primary); color: #fff; }
.pricing-card .btn-cta:hover { background: var(--primary-dark); }

/* ─── FAQ (white card, blue questions) ─── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 14px 28px 14px 0; font: inherit; font-size: 16px; font-weight: 700; color: var(--primary); cursor: pointer; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 20px; transition: transform var(--dur-md) var(--ease); }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { display: none; padding: 0 0 var(--space-sm); font-size: 15px; color: var(--text-muted); }
.faq-item.open .faq-a { display: block; animation: reveal var(--dur-md) var(--ease); }
.faq-a p { margin: 0; max-width: none; }

/* ─── DEVICE / PAYMENT / TABLE ─── */
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-md); }
.device-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-md); display: flex; flex-direction: column; gap: 10px; text-align: left; transition: border-color var(--transition), transform var(--transition); }
.device-card:hover { border-color: var(--primary); }
.device-card .device-icon { font-size: 36px; width: 40px; height: 40px; line-height: 40px; color: var(--primary); }
.device-card h3 { margin: 0; font-size: 20px; color: var(--primary); }
.device-card h3 a { color: inherit; }
.device-card ul { margin: 0; padding-left: 18px; list-style: disc; }
.device-card li { font-size: 14px; color: var(--text-muted); margin: 2px 0; }
.device-card .btn-cta { margin-top: auto; align-self: flex-start; background: var(--primary); color: #fff; }
.device-card .btn-cta:hover { background: var(--primary-dark); }
.payment-methods { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--space-md); }
.payment-methods li { list-style: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; background: #fff; color: var(--primary); }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; color: var(--text); border-radius: var(--radius-sm); overflow: hidden; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--border); padding: 12px; text-align: left; font-size: 14px; }
.compare-table th { color: var(--primary); }
.compare-table .highlight { background: var(--surface-2); font-weight: 700; color: var(--primary); }
.section-alt .section-sub + .compare-table { margin-top: 0; }

/* ─── FOOTER (white, blue text, 1px blue rule, underlined links – measured) ─── */
.site-footer { background: #fff; color: var(--primary); padding: var(--space-lg) var(--space-sm) var(--space-md); font-size: 12px; }
.footer-grid { max-width: 990px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-md); padding-bottom: var(--space-md); border-bottom: 1px solid var(--primary); }
.footer-brand .logo-footer { height: 32px; width: auto; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 320px; color: var(--text-muted); }
.footer-heading { color: var(--primary); font-size: 13px; font-weight: 700; margin-bottom: var(--space-sm); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--primary); font-size: 13px; text-decoration: underline; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary-dark); }
.footer-bottom { max-width: 990px; margin: 0 auto; text-align: center; }
.footer-bottom p { font-size: 11px; margin: 0; color: var(--text-muted); }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: center; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 8px 0; z-index: 999; }
  .nav-links.open { display: flex; animation: fade var(--dur-fast) var(--ease); }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a { display: block; width: 100%; padding: 14px 0; font-size: 16px; border-radius: 0; }
  .nav-right .btn-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links .dropdown { width: 100%; text-align: center; }
  .nav-links .dropdown-toggle { width: 100%; padding: 14px 0; font-size: 16px; background: none; border: 0; }
  .nav-links .dropdown-panel { position: static; padding-top: 0; min-width: 0; }
  .nav-links .dropdown:hover > .dropdown-panel, .nav-links .dropdown:focus-within > .dropdown-panel { display: none; }
  .nav-links .dropdown.open > .dropdown-panel { display: block; }
  .nav-links .dropdown-panel-inner { background: var(--surface-2); border: 0; box-shadow: none; }
  .hero { padding: 48px var(--space-sm) 52px; }
  .section { padding: 40px var(--space-sm); }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .footer-brand { grid-column: 1 / -1; }
  .btn-cta, .hero-cta-group a { display: block; margin-left: auto; margin-right: auto; text-align: center; width: max-content; max-width: 90%; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .compare-table th, .compare-table td { padding: 8px; font-size: 13px; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.dropdown.open > .dropdown-panel { display: block; }
.nav-links .dropdown-panel { left: 0; right: auto; }
.dropdown-toggle { background: none; border: 0; cursor: pointer; font-family: inherit; }
.dropdown-toggle::after { content: " ▾"; font-size: .8em; }

/* ─── MOTION (measured source: .3s ease-in on buttons/rows; transform+opacity only) ─── */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) { .feature-card:hover, .pricing-card:hover, .device-card:hover { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  .faq-item.open .faq-a, .nav-links.open { animation: fade var(--dur-fast) linear; }
  .faq-q::after { transition: none; }
  .feature-card, .pricing-card, .device-card, .btn-cta { transition-property: border-color, background-color, color; }
  .feature-card:hover, .pricing-card:hover, .device-card:hover, .btn-cta:active { transform: none; }
}
